diff options
author | jbj <devnull@localhost> | 2002-12-24 04:04:20 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-24 04:04:20 +0000 |
commit | b7129ca89835ca7819b104f38d18970004fb0064 (patch) | |
tree | fb7ce4c36c8b6b4b572511987336e9ac5a788ec6 /lib | |
parent | 415b3e6ff241d1c7120ee12ddb28bb1ad25c2e0d (diff) | |
download | rpm-b7129ca89835ca7819b104f38d18970004fb0064.tar.gz rpm-b7129ca89835ca7819b104f38d18970004fb0064.tar.bz2 rpm-b7129ca89835ca7819b104f38d18970004fb0064.zip |
splint fiddles.
CVS patchset: 5962
CVS date: 2002/12/24 04:04:20
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmfi.h | 2 | ||||
-rw-r--r-- | lib/rpmts.c | 4 | ||||
-rw-r--r-- | lib/rpmts.h | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/rpmfi.h b/lib/rpmfi.h index 2ac8924ce..26e8da2e3 100644 --- a/lib/rpmfi.h +++ b/lib/rpmfi.h @@ -51,7 +51,7 @@ struct rpmfi_s { /*@only@*/ /*@null@*/ const char ** flangs; /*!< File lang(s) (from header) */ -/*@only@*/ /*?null?*/ +/*@only@*/ /*@relnull@*/ uint_32 * dil; /*!< Directory indice(s) (from header) */ /*@only@*/ /*?null?*/ const uint_32 * fflags; /*!< File flag(s) (from header) */ diff --git a/lib/rpmts.c b/lib/rpmts.c index 38606e018..b39b078ff 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -1103,13 +1103,17 @@ rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags) Spec rpmtsSpec(rpmts ts) { +/*@-compdef -retexpose -usereleased@*/ return ts->spec; +/*@=compdef =retexpose =usereleased@*/ } Spec rpmtsSetSpec(rpmts ts, Spec spec) { Spec ospec = ts->spec; +/*@-assignexpose -temptrans@*/ ts->spec = spec; +/*@=assignexpose =temptrans@*/ return ospec; } diff --git a/lib/rpmts.h b/lib/rpmts.h index ddcd6a4e1..712769e2a 100644 --- a/lib/rpmts.h +++ b/lib/rpmts.h @@ -741,6 +741,7 @@ rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags) * @param ts transaction set * @return spec control structure */ +/*@null@*/ Spec rpmtsSpec(rpmts ts) /*@*/; @@ -750,6 +751,7 @@ Spec rpmtsSpec(rpmts ts) * @param spec new spec control structure * @return previous spec control structure */ +/*@null@*/ Spec rpmtsSetSpec(rpmts ts, /*@null@*/ Spec spec) /*@modifies ts @*/; |