summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-04-04 21:15:20 +0000
committerRichard Sharpe <sharpe@samba.org>2003-04-04 21:15:20 +0000
commit3b592a76a12ede0e27dc71573b77a2616fd0093f (patch)
tree78feb0eb0042092015542f41d5ce10fa2d982e39
parentdb5f60098a9baa6685ff63d173ef94952f6c4f7a (diff)
downloadsamba-3b592a76a12ede0e27dc71573b77a2616fd0093f.tar.gz
samba-3b592a76a12ede0e27dc71573b77a2616fd0093f.tar.bz2
samba-3b592a76a12ede0e27dc71573b77a2616fd0093f.zip
Some castiness for Don McCall.
(This used to be commit b03ac852a86cf9f436ad2b994e09fb08dd929674)
-rw-r--r--source3/libsmb/libsmbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 41a6755953..acbde95b91 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -2369,7 +2369,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 */
@@ -2378,7 +2378,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);