From: Volker Lendecke Date: Mon, 22 Mar 2021 15:11:21 +0000 (+0100) Subject: printing: Passing a fn pointer does not need "&" X-Git-Tag: tevent-0.11.0~1392 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656a3d2e48a5e49680dc12de9fb010ac06229b8a;p=thirdparty%2Fsamba.git printing: Passing a fn pointer does not need "&" Just looked a bit weird and different from all other fn pointer references in Samba. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c index 5938fd2a262..a65bda4ad2f 100644 --- a/source3/printing/queue_process.c +++ b/source3/printing/queue_process.c @@ -165,7 +165,7 @@ static bool print_queue_housekeeping(const struct timeval *now, void *pvt) state = talloc_get_type_abort(pvt, struct bq_state); DEBUG(5, ("print queue housekeeping\n")); - pcap_cache_reload(state->ev, state->msg, &reload_pcap_change_notify); + pcap_cache_reload(state->ev, state->msg, reload_pcap_change_notify); return true; } @@ -240,7 +240,7 @@ static void bq_sig_hup_handler(struct tevent_context *ev, DEBUG(1, ("Reloading pcap cache after SIGHUP\n")); pcap_cache_reload(state->ev, state->msg, - &reload_pcap_change_notify); + reload_pcap_change_notify); printing_subsystem_queue_tasks(state); bq_reopen_logs(NULL); } @@ -298,7 +298,7 @@ static void bq_smb_conf_updated(struct messaging_context *msg_ctx, DEBUG(10,("smb_conf_updated: Got message saying smb.conf was " "updated. Reloading.\n")); change_to_root_user(); - pcap_cache_reload(state->ev, msg_ctx, &reload_pcap_change_notify); + pcap_cache_reload(state->ev, msg_ctx, reload_pcap_change_notify); printing_subsystem_queue_tasks(state); } @@ -418,7 +418,7 @@ pid_t start_background_queue(struct tevent_context *ev, smb_panic("tevent_add_fd() failed for pause_pipe"); } - pcap_cache_reload(ev, msg_ctx, &reload_pcap_change_notify); + pcap_cache_reload(ev, msg_ctx, reload_pcap_change_notify); DEBUG(5,("start_background_queue: background LPQ thread waiting for messages\n")); ret = tevent_loop_wait(ev); @@ -471,7 +471,7 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx, /* Publish nt printers, this requires a working winreg pipe */ pcap_cache_reload(ev_ctx, msg_ctx, - &delete_and_reload_printers_full); + delete_and_reload_printers_full); return ret; } @@ -499,5 +499,5 @@ void printing_subsystem_update(struct tevent_context *ev_ctx, } pcap_cache_reload(ev_ctx, msg_ctx, - &delete_and_reload_printers_full); + delete_and_reload_printers_full); }