include <poll.h> instead of <sys/poll.h>

include-what-you-use automatically does this and it makes finding
unnecessary harder to spot. The only content of poll.h is a include
of sys/poll.h so should be harmless.
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2015-02-12 14:06:32 +01:00
parent c1ff5570f4
commit 0a6f50c0af
32 changed files with 32 additions and 32 deletions

View file

@ -291,7 +291,7 @@ int main(int argc, char *argv[]) {
example lacks all error checking for the sake of
simplicity):</para>
<programlisting>#include &lt;sys/poll.h&gt;
<programlisting>#include &lt;poll.h&gt;
#include &lt;systemd/sd-journal.h&gt;
int wait_for_changes(sd_journal *j) {

View file

@ -20,7 +20,7 @@
***/
#include <sys/socket.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/types.h>
#include <assert.h>
#include <string.h>

View file

@ -29,7 +29,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/prctl.h>
#include <stddef.h>
#include <getopt.h>

View file

@ -29,7 +29,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/poll.h>
#include <poll.h>
#include <stddef.h>
#include <getopt.h>

View file

@ -28,7 +28,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/poll.h>
#include <poll.h>
#include <stddef.h>
#include <getopt.h>

View file

@ -26,7 +26,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/poll.h>
#include <poll.h>
#include <stddef.h>
#include <getopt.h>

View file

@ -37,7 +37,7 @@
#include <sys/mount.h>
#include <linux/fs.h>
#include <linux/oom.h>
#include <sys/poll.h>
#include <poll.h>
#include <glob.h>
#include <sys/personality.h>

View file

@ -27,7 +27,7 @@
#include <unistd.h>
#include <sys/inotify.h>
#include <sys/epoll.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/reboot.h>
#include <sys/ioctl.h>
#include <linux/kd.h>

View file

@ -24,7 +24,7 @@
#include <string.h>
#include <sys/epoll.h>
#include <sys/timerfd.h>
#include <sys/poll.h>
#include <poll.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>

View file

@ -27,7 +27,7 @@
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/epoll.h>
#include <sys/un.h>
#include <fcntl.h>

View file

@ -24,7 +24,7 @@
#include <stddef.h>
#include <unistd.h>
#include <sys/inotify.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/vfs.h>
#include <linux/magic.h>

View file

@ -23,7 +23,7 @@
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/poll.h>
#include <poll.h>
#include <byteswap.h>
#include "util.h"

View file

@ -24,7 +24,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/poll.h>
#include <poll.h>
#include <byteswap.h>
#include <sys/mman.h>
#include <pthread.h>

View file

@ -23,7 +23,7 @@
#include <string.h>
#include <errno.h>
#include <sys/inotify.h>
#include <sys/poll.h>
#include <poll.h>
#include "util.h"
#include "cgroup-util.h"

View file

@ -19,7 +19,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/poll.h>
#include <poll.h>
#include <string.h>
#include "systemd/sd-login.h"

View file

@ -24,7 +24,7 @@
#include <string.h>
#include <errno.h>
#include <sys/inotify.h>
#include <sys/poll.h>
#include <poll.h>
#include <net/if.h>
#include "util.h"

View file

@ -40,7 +40,7 @@
#include <stdint.h>
#include <pthread.h>
#include <sys/prctl.h>
#include <sys/poll.h>
#include <poll.h>
#include "util.h"
#include "list.h"

View file

@ -24,7 +24,7 @@
#include <errno.h>
#include <string.h>
#include <dirent.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>

View file

@ -20,7 +20,7 @@
***/
#include <sys/socket.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/types.h>
#include <assert.h>
#include <string.h>

View file

@ -23,7 +23,7 @@
#include <resolv.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <poll.h>
#include <netinet/in.h>
#include "rtnl-util.h"

View file

@ -21,7 +21,7 @@
#include <stdbool.h>
#include <termios.h>
#include <unistd.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/inotify.h>
#include <errno.h>
#include <fcntl.h>

View file

@ -22,7 +22,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/socket.h>
#include <string.h>
#include <fcntl.h>

View file

@ -27,7 +27,7 @@
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/poll.h>
#include <poll.h>
#include "log.h"
#include "util.h"

View file

@ -39,7 +39,7 @@
#include <linux/tiocl.h>
#include <termios.h>
#include <stdarg.h>
#include <sys/poll.h>
#include <poll.h>
#include <ctype.h>
#include <sys/prctl.h>
#include <sys/utsname.h>

View file

@ -26,7 +26,7 @@
#include <sys/utsname.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/poll.h>
#include <poll.h>
#include "macro.h"
#include "path-util.h"

View file

@ -20,7 +20,7 @@
***/
#include <sys/socket.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/types.h>
#include <sys/timerfd.h>
#include <assert.h>

View file

@ -25,7 +25,7 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <stddef.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/inotify.h>
#include <unistd.h>
#include <getopt.h>

View file

@ -16,7 +16,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/socket.h>
#include <sys/un.h>

View file

@ -26,7 +26,7 @@
#include <time.h>
#include <net/if.h>
#include <sys/prctl.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/epoll.h>
#include <sys/wait.h>
#include <sys/signalfd.h>

View file

@ -28,7 +28,7 @@
#include <getopt.h>
#include <signal.h>
#include <time.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/stat.h>
#include <sys/types.h>

View file

@ -27,7 +27,7 @@
#include <signal.h>
#include <time.h>
#include <sys/inotify.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/stat.h>
#include <sys/types.h>

View file

@ -39,7 +39,7 @@
#include <sys/signalfd.h>
#include <sys/epoll.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <poll.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/ioctl.h>