lclint annotations.
authorjbj <devnull@localhost>
Fri, 17 Sep 1999 22:23:33 +0000 (22:23 +0000)
committerjbj <devnull@localhost>
Fri, 17 Sep 1999 22:23:33 +0000 (22:23 +0000)
CVS patchset: 3301
CVS date: 1999/09/17 22:23:33

build/.lclintrc
build/pack.c
build/rpmspec.h

index 7e510a6..6a8c8c5 100644 (file)
@@ -7,6 +7,13 @@
 
 +unixlib
 
+# don't-bother-me-yet parameters
+-branchstate
+-immediatetrans
+-mustfree
+-observertrans
+-statictrans
+
 # not-yet normal parameters
 -boolops               # w->n
 -fixedformalarray
index 80e9263..98486bd 100644 (file)
@@ -80,7 +80,7 @@ int packageBinaries(Spec spec)
 {
     CSA_t csabuf, *csa = &csabuf;
     int rc;
-    char *errorString;
+    const char *errorString;
     char *name;
     Package pkg;
 
@@ -376,7 +376,7 @@ int writeRPM(Header h, const char *fileName, int type,
 static int cpio_gzip(FD_t fdo, CSA_t *csa) {
     CFD_t *cfd = &csa->cpioCfd;
     int rc;
-    char *failedFile;
+    const char *failedFile;
 
     cfd->cpioIoType = cpioIoTypeGzFd;
     cfd->cpioGzFd = gzdFdopen(fdDup(fdFileno(fdo)), "w9");
@@ -389,6 +389,8 @@ static int cpio_gzip(FD_t fdo, CSA_t *csa) {
     }
 
     gzdClose(cfd->cpioGzFd);
+    if (failedFile)
+       xfree(failedFile);
 
     return rc;
 }
index 206d54b..a9b32ea 100644 (file)
@@ -67,7 +67,7 @@ struct spectags {
 };
 
 struct speclines {
-    char **sl_lines;
+    /*@only@*/ char **sl_lines;
     int sl_nalloc;
     int sl_nlines;
 };