summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-17 22:23:33 +0000
committerjbj <devnull@localhost>1999-09-17 22:23:33 +0000
commit7cf4b2e1aa3c238aa2e972efda67e63e7207877c (patch)
tree59508320acd24e90ac1d968ae0ed92d8a1fa6fdb
parent0a816b4cb5dc06db41a096c7455bcc4f8c815910 (diff)
downloadrpm-7cf4b2e1aa3c238aa2e972efda67e63e7207877c.tar.gz
rpm-7cf4b2e1aa3c238aa2e972efda67e63e7207877c.tar.bz2
rpm-7cf4b2e1aa3c238aa2e972efda67e63e7207877c.zip
lclint annotations.
CVS patchset: 3301 CVS date: 1999/09/17 22:23:33
-rw-r--r--build/.lclintrc7
-rw-r--r--build/pack.c6
-rw-r--r--build/rpmspec.h2
3 files changed, 12 insertions, 3 deletions
diff --git a/build/.lclintrc b/build/.lclintrc
index 7e510a63a..6a8c8c568 100644
--- a/build/.lclintrc
+++ b/build/.lclintrc
@@ -7,6 +7,13 @@
+unixlib
+# don't-bother-me-yet parameters
+-branchstate
+-immediatetrans
+-mustfree
+-observertrans
+-statictrans
+
# not-yet normal parameters
-boolops # w->n
-fixedformalarray
diff --git a/build/pack.c b/build/pack.c
index 80e926370..98486bd0d 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -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;
}
diff --git a/build/rpmspec.h b/build/rpmspec.h
index 206d54bf6..a9b32ea9d 100644
--- a/build/rpmspec.h
+++ b/build/rpmspec.h
@@ -67,7 +67,7 @@ struct spectags {
};
struct speclines {
- char **sl_lines;
+ /*@only@*/ char **sl_lines;
int sl_nalloc;
int sl_nlines;
};