summaryrefslogtreecommitdiffstats
path: root/source/libsmb/libsmb_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libsmb/libsmb_compat.c')
-rw-r--r--source/libsmb/libsmb_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/libsmb_compat.c b/source/libsmb/libsmb_compat.c
index f9461f93683..5699e153bbd 100644
--- a/source/libsmb/libsmb_compat.c
+++ b/source/libsmb/libsmb_compat.c
@@ -420,7 +420,7 @@ int smbc_open_print_job(const char *fname)
{
SMBCFILE * file = statcont->open_print_job(statcont, fname);
if (!file) return -1;
- return (int) file;
+ return file->cli_fd;
}
int smbc_list_print_jobs(const char *purl, smbc_list_print_job_fn fn)