Coding style change
This commit is contained in:
@@ -17,9 +17,9 @@ struct descriptors entries;
|
||||
|
||||
int descriptor_cmp(struct descriptor *a, struct descriptor *b)
|
||||
{
|
||||
if(a->fd < b->fd)
|
||||
if (a->fd < b->fd)
|
||||
return -1;
|
||||
if(a->fd > b->fd)
|
||||
if (a->fd > b->fd)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
@@ -41,7 +41,7 @@ void find(int fd)
|
||||
des.fd = fd;
|
||||
found = SPLAY_FIND(descriptors, &entries, &des);
|
||||
|
||||
if(found == NULL)
|
||||
if (found == NULL)
|
||||
printf("Not found fd %d\n", fd);
|
||||
else
|
||||
printf("Found fd %d (%d)\n", found->fd, fd);
|
||||
@@ -80,7 +80,7 @@ void fd_min_max(void)
|
||||
min_des = SPLAY_MIN(descriptors, &entries);
|
||||
max_des = SPLAY_MAX(descriptors, &entries);
|
||||
|
||||
if(min_des && max_des)
|
||||
if (min_des && max_des)
|
||||
printf("min fd = %d max fd = %d\n", min_des->fd, max_des->fd);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user