summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-28 17:21:07 +0200
committerVolker Lendecke <vl@samba.org>2010-08-29 21:55:25 +0200
commite784e160ec899a32b673dfaa77fa12c8f27d296c (patch)
treecc877dbf4bceb3d20e4b9e73dbf7c007febea897
parent5a6be0b3149e43bad14bb75c308ced904909dc58 (diff)
downloadsamba-e784e160ec899a32b673dfaa77fa12c8f27d296c.tar.gz
samba-e784e160ec899a32b673dfaa77fa12c8f27d296c.tar.bz2
samba-e784e160ec899a32b673dfaa77fa12c8f27d296c.zip
s3: Remove two uses of smbd_server_fd()
Actually, this is a bit cheating. But those two files depend on smbd_server_conn anyway, it does not make things worse.
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 782232cd76..51b2e51e09 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -928,7 +928,7 @@ static void smbd_sig_hup_handler(struct tevent_context *ev,
private_data, struct messaging_context);
change_to_root_user();
DEBUG(1,("Reloading services after SIGHUP\n"));
- reload_services(msg_ctx, smbd_server_fd(), False);
+ reload_services(msg_ctx, smbd_server_conn->sock, False);
}
void smbd_setup_sig_hup_handler(struct tevent_context *ev,
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 6f4fb5a0e7..36b081a3fe 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -107,7 +107,7 @@ static void smb_conf_updated(struct messaging_context *msg,
DEBUG(10,("smb_conf_updated: Got message saying smb.conf was "
"updated. Reloading.\n"));
change_to_root_user();
- reload_services(msg, smbd_server_fd(), False);
+ reload_services(msg, smbd_server_conn->sock, False);
}