Fix compiler warnings
This commit is contained in:
parent
861d2c0e95
commit
6b8f1f9a6c
3 changed files with 18 additions and 15 deletions
3
siahsd.c
3
siahsd.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue