summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-15 14:45:48 +0200
committerVolker Lendecke <vl@samba.org>2010-08-17 15:31:49 +0200
commit3aba8e9b7e1feb3a429dfa8e68fb00b61e985ffd (patch)
tree5a4843c8eba9def41977719f593bcbe66ca8849c /source3/printing
parentfeb22e08972ab8a2ed6610b4d1ac1de361e6a500 (diff)
downloadsamba-3aba8e9b7e1feb3a429dfa8e68fb00b61e985ffd.tar.gz
samba-3aba8e9b7e1feb3a429dfa8e68fb00b61e985ffd.tar.bz2
samba-3aba8e9b7e1feb3a429dfa8e68fb00b61e985ffd.zip
s3: Remove unused "pos" arg from print_job_write
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 31b802d3fb..0c9570b8c7 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2352,8 +2352,7 @@ pause, or resume print job. User name: %s. Printer name: %s.",
ssize_t print_job_write(struct tevent_context *ev,
struct messaging_context *msg_ctx,
- int snum, uint32 jobid, const char *buf, SMB_OFF_T pos,
- size_t size)
+ int snum, uint32 jobid, const char *buf, size_t size)
{
const char* sharename = lp_const_servicename(snum);
ssize_t return_code;
@@ -2372,7 +2371,7 @@ ssize_t print_job_write(struct tevent_context *ev,
return -1;
}
- return_code = write_data_at_offset(pjob->fd, buf, size, pos);
+ return_code = write_data_at_offset(pjob->fd, buf, size, (SMB_OFF_T)-1);
if (return_code>0) {
pjob->size += size;