diff options
author | jbj <devnull@localhost> | 2001-10-16 14:58:57 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-16 14:58:57 +0000 |
commit | 9f45bcd3ecf3f3548ed7a8490b882a6ca9ffeb94 (patch) | |
tree | 65c941cf8e72c29c2d63822cd98aec4db0967afc /build/spec.c | |
parent | cafccc00586497bdc9c5a4c12b19709fbd417976 (diff) | |
download | librpm-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 'build/spec.c')
-rw-r--r-- | build/spec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/spec.c b/build/spec.c index 319a4840b..c515b6e3c 100644 --- a/build/spec.c +++ b/build/spec.c @@ -299,7 +299,7 @@ int addSource(Spec spec, Package pkg, const char *field, int tag) } /* Create the entry and link it in */ - p = xmalloc(sizeof(struct Source)); + p = xmalloc(sizeof(*p)); p->num = num; p->fullSource = xstrdup(field); p->flags = flag; @@ -542,7 +542,7 @@ Spec freeSpec(Spec spec) { struct OpenFileInfo *ofi; - ofi = xmalloc(sizeof(struct OpenFileInfo)); + ofi = xmalloc(sizeof(*ofi)); ofi->fd = NULL; ofi->fileName = NULL; ofi->lineNum = 0; |