mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
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 afed2cbbcc
)
This commit is contained in:
parent
274f1f8806
commit
06345b8116
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user