diff options
author | Richard Sharpe <sharpe@samba.org> | 2003-04-04 22:16:50 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2003-04-04 22:16:50 +0000 |
commit | 15512544326aa29f8f9fc82bf28dc261288e9321 (patch) | |
tree | ffbdf656e1457830a73d2f5dcc0a4376bcda9c4c | |
parent | d5f235912fe5802a0698f0b56328a9a3b5f903fc (diff) | |
download | samba-15512544326aa29f8f9fc82bf28dc261288e9321.tar.gz samba-15512544326aa29f8f9fc82bf28dc261288e9321.tar.bz2 samba-15512544326aa29f8f9fc82bf28dc261288e9321.zip |
Add some castiness for Don McCall.
(This used to be commit 57c860b41b21bafc660f84070bfe9c8d90bc28a3)
-rw-r--r-- | source3/libsmb/libsmbclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index 440527cd9d..92353d8c30 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -2249,7 +2249,7 @@ static int smbc_print_file_ctx(SMBCCTX *c_file, const char *fname, SMBCCTX *c_pr /* Try to open the file for reading ... */ - if ((fid1 = c_file->open(c_file, fname, O_RDONLY, 0666)) < 0) { + if ((int)(fid1 = c_file->open(c_file, fname, O_RDONLY, 0666)) < 0) { DEBUG(3, ("Error, fname=%s, errno=%i\n", fname, errno)); return -1; /* smbc_open sets errno */ @@ -2258,7 +2258,7 @@ static int smbc_print_file_ctx(SMBCCTX *c_file, const char *fname, SMBCCTX *c_pr /* Now, try to open the printer file for writing */ - if ((fid2 = c_print->open_print_job(c_print, printq)) < 0) { + if ((int)(fid2 = c_print->open_print_job(c_print, printq)) < 0) { saverr = errno; /* Save errno */ c_file->close(c_file, fid1); |