smbd: make smbd_setup_sig_{term,hup}_handler() static
authorStefan Metzmacher <metze@samba.org>
Thu, 24 May 2018 07:49:40 +0000 (09:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 18:52:23 +0000 (20:52 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/process.c
source3/smbd/proto.h

index 936b5351de7cf6b917677c8d618cca9085355841..cf307b000727a4df1872a43e36e43994e4543104 100644 (file)
@@ -966,7 +966,7 @@ static void smbd_sig_term_handler(struct tevent_context *ev,
        exit_server_cleanly("termination signal");
 }
 
-void smbd_setup_sig_term_handler(struct smbd_server_connection *sconn)
+static void smbd_setup_sig_term_handler(struct smbd_server_connection *sconn)
 {
        struct tevent_signal *se;
 
@@ -996,7 +996,7 @@ static void smbd_sig_hup_handler(struct tevent_context *ev,
        reload_services(sconn, conn_snum_used, false);
 }
 
-void smbd_setup_sig_hup_handler(struct smbd_server_connection *sconn)
+static void smbd_setup_sig_hup_handler(struct smbd_server_connection *sconn)
 {
        struct tevent_signal *se;
 
index e4d0cf44e9b6dda88b20e457cbe4f6f34cec4a83..aacdeb44daf9aac28f5f1b4cf259368be98729be 100644 (file)
@@ -824,8 +824,6 @@ NTSTATUS make_default_filesystem_acl(
 
 /* The following definitions come from smbd/process.c  */
 
-void smbd_setup_sig_term_handler(struct smbd_server_connection *sconn);
-void smbd_setup_sig_hup_handler(struct smbd_server_connection *sconn);
 bool srv_send_smb(struct smbXsrv_connection *xconn, char *buffer,
                  bool no_signing, uint32_t seqnum,
                  bool do_encrypt,