projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some random changes.
[tinc]
/
fd
/
fd.c
diff --git
a/fd/fd.c
b/fd/fd.c
index
b969205
..
ad4a8ca
100644
(file)
--- a/
fd/fd.c
+++ b/
fd/fd.c
@@
-34,7
+34,7
@@
static avl_tree_t *fds;
volatile bool fd_running = false;
int fd_compare(struct fd *a, struct fd *b) {
volatile bool fd_running = false;
int fd_compare(struct fd *a, struct fd *b) {
- return
(a->fd - b->fd) ?: (a->mode - b->mode)
;
+ return
a->fd - b->fd
;
};
bool fd_init(void) {
};
bool fd_init(void) {
@@
-42,7
+42,7
@@
bool fd_init(void) {
FD_ZERO(&readset);
FD_ZERO(&writeset);
FD_ZERO(&readset);
FD_ZERO(&writeset);
- FD_ZERO(&e
xcept
set);
+ FD_ZERO(&e
rror
set);
fds = avl_tree_new((avl_compare_t)fd_compare, NULL);
fds = avl_tree_new((avl_compare_t)fd_compare, NULL);