diff options
author | jbj <devnull@localhost> | 2001-10-15 03:22:10 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-15 03:22:10 +0000 |
commit | d8dc44f36377c59164d19106f0f93843ea5b3a09 (patch) | |
tree | 8f521d9b295dd0e9d05721cfd97f3d8a5b30801d /build/build.c | |
parent | 4b67d7621c20e1f2c5aa1ebdf7bb26eb3a6ae0d5 (diff) | |
download | rpm-d8dc44f36377c59164d19106f0f93843ea5b3a09.tar.gz rpm-d8dc44f36377c59164d19106f0f93843ea5b3a09.tar.bz2 rpm-d8dc44f36377c59164d19106f0f93843ea5b3a09.zip |
lclint fiddles to annotate globals.
CVS patchset: 5106
CVS date: 2001/10/15 03:22:10
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build/build.c b/build/build.c index fdbf6ee8a..60fc36677 100644 --- a/build/build.c +++ b/build/build.c @@ -10,6 +10,7 @@ #include "debug.h" +/*@unchecked@*/ static int _build_debug = 0; /*@access StringBuf @*/ @@ -19,19 +20,22 @@ static int _build_debug = 0; /** */ static void doRmSource(Spec spec) + /*@globals rpmGlobalMacroContext, + fileSystem@*/ /*@modifies fileSystem @*/ { struct Source *p; Package pkg; + int rc; #if 0 - Unlink(spec->specFile); + rc = Unlink(spec->specFile); #endif for (p = spec->sources; p != NULL; p = p->next) { if (! (p->flags & RPMBUILD_ISNO)) { const char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL); - (void) Unlink(fn); + rc = Unlink(fn); fn = _free(fn); } } @@ -40,7 +44,7 @@ static void doRmSource(Spec spec) for (p = pkg->icon; p != NULL; p = p->next) { if (! (p->flags & RPMBUILD_ISNO)) { const char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL); - (void) Unlink(fn); + rc = Unlink(fn); fn = _free(fn); } } |