+#include <sys/socket.h>

remove unused 'int i' form main
whitespacing only
This commit is contained in:
"Vladimir N. Oleynik" 2006-01-25 14:40:24 +00:00
parent 7b4aa6ffc6
commit 2e5ee8ed93

View File

@ -19,6 +19,7 @@
#include <string.h>
#include <signal.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <ctype.h>
#include "libbb.h"
@ -80,7 +81,7 @@ static uint32_t ttl = DEFAULT_TTL;
static void
convname(char *a, uint8_t *q)
{
int i = (q[0] == '.')?0:1;
int i = (q[0] == '.') ? 0 : 1;
for(; i < MAX_HOST_LEN-1 && *q; i++, q++)
a[i] = tolower(*q);
a[0] = i - 1;
@ -93,7 +94,7 @@ convname(char *a, uint8_t *q)
static void
undot(uint8_t * rip)
{
int i=0, s=0;
int i = 0, s = 0;
while(rip[i]) i++;
for(--i; i >= 0; i--) {
if(rip[i] == '.') {
@ -378,7 +379,7 @@ interrupt(int x)
int dnsd_main(int argc, char **argv)
{
int i, udps;
int udps;
uint16_t port = 53;
uint8_t buf[MAX_PACK_LEN];
unsigned long flags = 0;