diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-27 19:34:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:04:47 -0500 |
commit | 291963446795813098fc1c89bf7e4db55414806f (patch) | |
tree | db9d34e26c3d734f27cc409eb88be2498e54addb /source3/printing | |
parent | a1faaa9e67e1370c780acb249764bd2d16f52c78 (diff) | |
download | samba-291963446795813098fc1c89bf7e4db55414806f.tar.gz samba-291963446795813098fc1c89bf7e4db55414806f.tar.bz2 samba-291963446795813098fc1c89bf7e4db55414806f.zip |
r10555: a few compile warnings from jason Mader
(This used to be commit 88998fa0b919fec4966d171a9c7b4f875bc1e26a)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 397ed3b355..61470f1510 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -91,7 +91,7 @@ uint16 pjobid_to_rap(const char* sharename, uint32 jobid) if (rap_jobid == 0) rap_jobid = ++next_rap_jobid; SSVAL(buf,0,rap_jobid); - data.dptr = buf; + data.dptr = (char*)buf; data.dsize = sizeof(rap_jobid); tdb_store(rap_tdb, key, data, TDB_REPLACE); tdb_store(rap_tdb, data, key, TDB_REPLACE); @@ -112,7 +112,7 @@ BOOL rap_to_pjobid(uint16 rap_jobid, fstring sharename, uint32 *pjobid) return False; SSVAL(buf,0,rap_jobid); - key.dptr = buf; + key.dptr = (char*)buf; key.dsize = sizeof(rap_jobid); data = tdb_fetch(rap_tdb, key); if ( data.dptr && data.dsize == sizeof(struct rap_jobid_key) ) @@ -164,7 +164,7 @@ static void rap_jobid_delete(const char* sharename, uint32 jobid) rap_jobid = SVAL(data.dptr, 0); SAFE_FREE(data.dptr); SSVAL(buf,0,rap_jobid); - data.dptr=buf; + data.dptr = (char*)buf; data.dsize = sizeof(rap_jobid); tdb_delete(rap_tdb, key); tdb_delete(rap_tdb, data); |