summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-05-05 19:28:32 +0000
committerjbj <devnull@localhost>2001-05-05 19:28:32 +0000
commit8f75bbc17dab6c334583f33c7b912fb16d2ddc4b (patch)
tree145862352d95e2d391f0d65db0027d44bf236b39 /lib/rpmrc.c
parentd78e027808deb6aef4e65338d160986d7e576a90 (diff)
downloadlibrpm-tizen-8f75bbc17dab6c334583f33c7b912fb16d2ddc4b.tar.gz
librpm-tizen-8f75bbc17dab6c334583f33c7b912fb16d2ddc4b.tar.bz2
librpm-tizen-8f75bbc17dab6c334583f33c7b912fb16d2ddc4b.zip
- enough lclint annotations and fiddles already.
CVS patchset: 4741 CVS date: 2001/05/05 19:28:32
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 0caf493c6..24698ba50 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -413,6 +413,7 @@ int rpmReadConfigFiles(const char * file, const char * target)
{
/* Preset target macros */
+ /*@-nullstate@*/ /* FIX: target can be NULL */
rpmRebuildTargetVars(&target, NULL);
/* Read the files */
@@ -420,6 +421,7 @@ int rpmReadConfigFiles(const char * file, const char * target)
/* Reset target macros */
rpmRebuildTargetVars(&target, NULL);
+ /*@=nullstate@*/
/* Finally set target platform */
{ const char *cpu = rpmExpand("%{_target_cpu}", NULL);
@@ -611,6 +613,7 @@ int rpmReadRC(const char * rcfiles)
return rc;
}
+/*@-usedef@*/ /*@ FIX: se usage inconsistent, W2DO? */
static int doReadRC( /*@killref@*/ FD_t fd, const char * urlfn)
{
const char *s;
@@ -825,6 +828,7 @@ static int doReadRC( /*@killref@*/ FD_t fd, const char * urlfn)
return 0;
}
+/*@=usedef@*/
# if defined(__linux__) && defined(__i386__)
#include <setjmp.h>
@@ -1385,7 +1389,7 @@ void rpmGetOsInfo(const char ** name, int * num) {
getMachineInfo(OS, name, num);
}
-void rpmRebuildTargetVars(const char **buildtarget, const char ** canontarget)
+void rpmRebuildTargetVars(const char ** buildtarget, const char ** canontarget)
{
char *ca = NULL, *co = NULL, *ct = NULL;