diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-23 08:40:49 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-23 10:26:23 +0100 |
commit | 7d2d902d51e05008cf29ef510082c5fd3f213e46 (patch) | |
tree | ec617b716db2cb32366f5ce7a2c287dbd2da23f0 /lib | |
parent | 9e7de4276586bb369819a689eb9b35820a1a8145 (diff) | |
download | samba-7d2d902d51e05008cf29ef510082c5fd3f213e46.tar.gz samba-7d2d902d51e05008cf29ef510082c5fd3f213e46.tar.bz2 samba-7d2d902d51e05008cf29ef510082c5fd3f213e46.zip |
async_rec/async_sock.c - add an additional "const"
In order to suppress a build warning.
Acked-by: Volker and Metze
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Mar 23 10:26:23 CET 2011 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r-- | lib/async_req/async_sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c index 7ea66f57fe..86053d94e8 100644 --- a/lib/async_req/async_sock.c +++ b/lib/async_req/async_sock.c @@ -104,7 +104,8 @@ static void sendto_handler(struct tevent_context *ev, tevent_req_data(req, struct sendto_state); state->sent = sendto(state->fd, state->buf, state->len, state->flags, - (struct sockaddr *)state->addr, state->addr_len); + (const struct sockaddr *)state->addr, + state->addr_len); if ((state->sent == -1) && (errno == EINTR)) { /* retry */ return; |