1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Some castiness for Don McCall.

(This used to be commit b03ac852a86cf9f436ad2b994e09fb08dd929674)
This commit is contained in:
Richard Sharpe 2003-04-04 21:15:20 +00:00
parent db5f60098a
commit 3b592a76a1

View File

@ -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);