summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-01 04:40:00 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-01 04:40:00 +0000
commitcf4e0982fdf9ca549eba68791c670a442755f713 (patch)
tree3e97013f702e8ed91ca2a4602ddbd4715decb572 /source3/lib
parent840e8b35027e49c6b4ecdb6abd538f5bdc196057 (diff)
downloadsamba-cf4e0982fdf9ca549eba68791c670a442755f713.tar.gz
samba-cf4e0982fdf9ca549eba68791c670a442755f713.tar.bz2
samba-cf4e0982fdf9ca549eba68791c670a442755f713.zip
Make it clear that the magic value is (size_t)-1.
Andrew Bartlett (This used to be commit 0676b4e35f2ab5b58c44df9fe2eef112425d6013)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/charcnv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 3428377d95..6dd3cd52d9 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -139,7 +139,7 @@ size_t convert_string(charset_t from, charset_t to,
i_len=srclen;
o_len=destlen;
retval = smb_iconv(descriptor, &inbuf, &i_len, &outbuf, &o_len);
- if(retval==-1) {
+ if(retval==(size_t)-1) {
const char *reason="unknown error";
switch(errno) {
case EINVAL:
@@ -214,7 +214,7 @@ convert:
retval = smb_iconv(descriptor,
&inbuf, &i_len,
&outbuf, &o_len);
- if(retval == -1) {
+ if(retval == (size_t)-1) {
const char *reason="unknown error";
switch(errno) {
case EINVAL: