summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-16 14:58:57 +0000
committerjbj <devnull@localhost>2001-10-16 14:58:57 +0000
commit9f45bcd3ecf3f3548ed7a8490b882a6ca9ffeb94 (patch)
tree65c941cf8e72c29c2d63822cd98aec4db0967afc /rpmio/macro.c
parentcafccc00586497bdc9c5a4c12b19709fbd417976 (diff)
downloadlibrpm-tizen-9f45bcd3ecf3f3548ed7a8490b882a6ca9ffeb94.tar.gz
librpm-tizen-9f45bcd3ecf3f3548ed7a8490b882a6ca9ffeb94.tar.bz2
librpm-tizen-9f45bcd3ecf3f3548ed7a8490b882a6ca9ffeb94.zip
More lclint annotations.
CVS patchset: 5116 CVS date: 2001/10/16 14:58:57
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index b6eed68fb..c4318241a 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -890,7 +890,7 @@ grabArgs(MacroBuf mb, const MacroEntry me, const char * se, char lastc)
#endif
/* Build argv array */
- argv = (const char **) alloca((argc + 1) * sizeof(char *));
+ argv = (const char **) alloca((argc + 1) * sizeof(*argv));
be[-1] = ' '; /* assert((be - 1) == (b + strlen(b) == buf + strlen(buf))) */
be[0] = '\0';
b = buf;
@@ -1643,7 +1643,7 @@ int isCompressed(const char * file, rpmCompressedMagic * compressed)
if (fd) (void) Fclose(fd);
return 1;
}
- nb = Fread(magic, sizeof(char), sizeof(magic), fd);
+ nb = Fread(magic, sizeof(magic[0]), sizeof(magic), fd);
if (nb < 0) {
rpmError(RPMERR_BADSPEC, _("File %s: %s\n"), file, Fstrerror(fd));
rc = 1;