Partial cleanup of find
- Remove unnecessary headers
- dump_node is not used anywhere
- exec_buf is unused
- Replace SUCCESS with 1 and simplify code accordingly
- a==0 -> !a
- Simplify an incremation pattern using pre-increments
- Add static keyword to functions
- Make error messages print to stderr
author |
Felix Janda <felix.janda@posteo.de> |
date |
Wed, 10 Apr 2013 19:25:06 +0200 |
parents |
e864c5ed1d25 |
children |
4dcd5decb4fd |
rev |
line source |
190
|
1 // Included after toys.h, for network stuff. Some build environments
|
|
2 // don't include network support, so we shouldn't include it unless we're
|
|
3 // going to build it.
|
|
4
|
|
5 #include <sys/socket.h>
|
|
6 #include <netinet/in.h>
|
|
7 #include <arpa/inet.h>
|
|
8 #include <netdb.h>
|
|
9 #include <poll.h>
|