diff options
author | Volker Lendecke <vl@samba.org> | 2011-04-01 08:40:38 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-04-01 09:35:19 +0200 |
commit | 1272758f8f989647802ea90722661ab133efa83f (patch) | |
tree | eb58d7abfcf8f0ed3195e29eaffde04184547a5f /source3/winbindd | |
parent | d9b03cb4f0906bc7844c4abffcb3c9d8b04dc5eb (diff) | |
download | samba-1272758f8f989647802ea90722661ab133efa83f.tar.gz samba-1272758f8f989647802ea90722661ab133efa83f.tar.bz2 samba-1272758f8f989647802ea90722661ab133efa83f.zip |
s3: Fix Coverity ID 1137: CONSTANT_EXPRESSION_RESULT
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr 1 09:35:19 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 57a93a7a2d..68a86257da 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -246,7 +246,7 @@ static uint16 centry_uint16(struct cache_entry *centry) if (!centry_check_bytes(centry, 2)) { smb_panic_fn("centry_uint16"); } - ret = CVAL(centry->data, centry->ofs); + ret = SVAL(centry->data, centry->ofs); centry->ofs += 2; return ret; } @@ -792,7 +792,7 @@ static void centry_put_uint32(struct cache_entry *centry, uint32 v) static void centry_put_uint16(struct cache_entry *centry, uint16 v) { centry_expand(centry, 2); - SIVAL(centry->data, centry->ofs, v); + SSVAL(centry->data, centry->ofs, v); centry->ofs += 2; } |