summaryrefslogtreecommitdiff
path: root/source3
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
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')
-rw-r--r--source3/include/printing.h3
-rw-r--r--source3/printing/printing.c5
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c1
3 files changed, 3 insertions, 6 deletions
diff --git a/source3/include/printing.h b/source3/include/printing.h
index 1aa4e38b80..b5fd98dd85 100644
--- a/source3/include/printing.h
+++ b/source3/include/printing.h
@@ -137,8 +137,7 @@ bool print_job_resume(struct auth_serversupplied_info *server_info,
int snum, uint32 jobid, WERROR *errcode);
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);
int print_queue_length(struct messaging_context *msg_ctx, int snum,
print_status_struct *pstatus);
WERROR print_job_start(struct auth_serversupplied_info *server_info,
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;
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 1c04ef167a..893ddce531 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -5366,7 +5366,6 @@ WERROR _spoolss_WritePrinter(struct pipes_struct *p,
buffer_written = print_job_write(server_event_context(),p->msg_ctx,
snum, Printer->jobid,
(const char *)r->in.data.data,
- (SMB_OFF_T)-1,
(size_t)r->in._data_size);
if (buffer_written == (ssize_t)-1) {
*r->out.num_written = 0;