summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-07-19 15:07:42 -0400
committerAndreas Schneider <asn@samba.org>2011-08-10 18:14:04 +0200
commit227551a07bc1af29ff2e24d889ea7dd45d575773 (patch)
tree5a8b272ea593c53152ac2c358883e6172f4ce3e3 /source3/printing
parent2b33b438ba8cc6f89bf91e5a63bf0168d48be670 (diff)
downloadsamba-227551a07bc1af29ff2e24d889ea7dd45d575773.tar.gz
samba-227551a07bc1af29ff2e24d889ea7dd45d575773.tar.bz2
samba-227551a07bc1af29ff2e24d889ea7dd45d575773.zip
s3-prefork: Return tsocket_address for client and server
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/spoolssd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c
index 81bf7f876c..1297b58129 100644
--- a/source3/printing/spoolssd.c
+++ b/source3/printing/spoolssd.c
@@ -420,8 +420,8 @@ static void spoolss_client_terminated(void *pvt)
struct spoolss_new_client {
struct spoolss_children_data *data;
- struct sockaddr_un sunaddr;
- socklen_t addrlen;
+ struct tsocket_address *srv_addr;
+ struct tsocket_address *cli_addr;
};
static void spoolss_handle_client(struct tevent_req *req);
@@ -457,14 +457,11 @@ static void spoolss_next_client(void *pvt)
return;
}
next->data = data;
- next->addrlen = sizeof(next->sunaddr);
req = prefork_listen_send(next, data->ev_ctx, data->pf,
data->listen_fd_size,
data->listen_fds,
- data->lock_fd,
- (struct sockaddr *)&next->sunaddr,
- &next->addrlen);
+ data->lock_fd);
if (!req) {
DEBUG(1, ("Failed to make listening request!?\n"));
talloc_free(next);
@@ -485,7 +482,8 @@ static void spoolss_handle_client(struct tevent_req *req)
client = tevent_req_callback_data(req, struct spoolss_new_client);
data = client->data;
- ret = prefork_listen_recv(req, &sd);
+ ret = prefork_listen_recv(req, client, &sd,
+ &client->srv_addr, &client->cli_addr);
/* this will free the request too */
talloc_free(client);