diff options
author | Tim Potter <tpot@samba.org> | 2003-07-22 01:18:24 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-07-22 01:18:24 +0000 |
commit | 06345b81164d575bc1faf537e3c48a5dfe8e2442 (patch) | |
tree | fe516aaa373ed8a38572d42722cfda22a2e9b16f /source3 | |
parent | 274f1f8806f091a38bbf65363d7edf681459b58d (diff) | |
download | samba-06345b81164d575bc1faf537e3c48a5dfe8e2442.tar.gz samba-06345b81164d575bc1faf537e3c48a5dfe8e2442.tar.bz2 samba-06345b81164d575bc1faf537e3c48a5dfe8e2442.zip |
Use %p for a pointer type in a printf-style format string. Also casting
a pointer to a uint32 value is incorrect on a 64-bit architecture.
(This used to be commit afed2cbbcc07de9e453156972250f5f9d22e8e83)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 2d316051af..c7fab32957 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -563,7 +563,7 @@ static BOOL open_printer_hnd(pipes_struct *p, POLICY_HND *hnd, char *name, uint3 new_printer->notify.option=NULL; - if ( !(new_printer->ctx = talloc_init("Printer Entry [0x%x]", (uint32)hnd)) ) { + if ( !(new_printer->ctx = talloc_init("Printer Entry [%p]", hnd)) ) { DEBUG(0,("open_printer_hnd: talloc_init() failed!\n")); close_printer_handle(p, hnd); return False; |