Fix compiler warnings

This commit is contained in:
Wilco Baan Hofman 2013-02-16 17:39:22 +01:00
parent 861d2c0e95
commit 6b8f1f9a6c
3 changed files with 18 additions and 15 deletions

View file

@ -36,7 +36,6 @@
* It returns nothing.
*/
static STATUS send_reply(TALLOC_CTX *mem_ctx, int sock, struct sockaddr_in from, struct siahs_packet *pkt, const char *string) {
int n;
uint8_t *reply;
int i;
uint16_t sum = 0;
@ -86,7 +85,7 @@ static STATUS send_reply(TALLOC_CTX *mem_ctx, int sock, struct sockaddr_in from,
DEBUG(4, "Sending %s sum %04x len %d\n", string, sum, reply_len - 4);
n = sendto(sock, reply, reply_len, 0, (struct sockaddr *)&from, sizeof(from));
sendto(sock, reply, reply_len, 0, (struct sockaddr *)&from, sizeof(from));
/* Cleanup */
talloc_free(reply);