- fix indenting (yes, I am a freak)

This commit is contained in:
Babak Farrokhi 2015-10-25 16:07:29 +03:30
parent e3ee2782b7
commit 006ddff6af

22
fsipd.c
View File

@ -120,16 +120,16 @@ process_request(const struct sockaddr_in *sa, int type, char *str)
char *ptype; char *ptype;
switch (type) { switch (type) {
case SOCK_STREAM: case SOCK_STREAM:
ptype = s_types[0]; ptype = s_types[0];
break; break;
case SOCK_DGRAM: case SOCK_DGRAM:
ptype = s_types[1]; ptype = s_types[1];
break; break;
case SOCK_RAW: case SOCK_RAW:
ptype = s_types[2]; ptype = s_types[2];
default: default:
ptype = s_types[3];; ptype = s_types[3];;
} }
chomp(str); chomp(str);
@ -302,7 +302,7 @@ udp_handler(void *args)
while (1) { while (1) {
if ((len = recvfrom(u_sockfd, str, sizeof(str), 0, (struct sockaddr *)&u_other, &sa_len)) > 0) { if ((len = recvfrom(u_sockfd, str, sizeof(str), 0, (struct sockaddr *)&u_other, &sa_len)) > 0) {
process_request(&u_other, SOCK_DGRAM, str); process_request(&u_other, SOCK_DGRAM, str);
} }
} }
return (args); /* mute the compiler warning */ return (args); /* mute the compiler warning */