standardization pass: conditional statement spacing, removed NULL shorthand making checks more explicit

This commit is contained in:
Joseph Henry
2017-09-14 13:19:13 -07:00
parent 7c586471f4
commit cc468fe8fe
4 changed files with 210 additions and 219 deletions

View File

@@ -37,7 +37,7 @@ unsigned short csum(unsigned short *buf, int nwords)
int main(int argc , char *argv[])
{
if(argc < 3) {
if (argc < 3) {
fprintf(stderr, "usage: layer2 <zt_home_dir> <nwid>\n");
return 1;
}
@@ -51,7 +51,7 @@ int main(int argc , char *argv[])
// create socket
int fd;
if((fd = zts_socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) < 0) {
if ((fd = zts_socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) < 0) {
printf("There was a problem creating the raw socket\n");
exit(-1);
}