Prune and relocate #include files.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2015-06-17 13:36:36 +02:00
parent 0de4fb0cbf
commit 7b894fcf52
3 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
/* Misc. utility functions and C-library extensions for finit and its plugins
*
* Copyright (c) 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
* Copyright (c) 2008-2014 Joachim Nilsson <troglobit@gmail.com>
* Copyright (c) 2008-2015 Joachim Nilsson <troglobit@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -26,6 +26,7 @@
#define FINIT_HELPERS_H_
#include <stdio.h>
#include <string.h> /* strerror() */
#include <syslog.h>
#define DO_LOG(level, fmt, args...) \
+1
View File
@@ -38,6 +38,7 @@
* It activates the kbrequest action.
*/
#include <string.h> /* strerror() */
#include <sys/reboot.h>
#include <sys/wait.h>
-3
View File
@@ -25,14 +25,11 @@
#ifndef FINIT_SVC_H_
#define FINIT_SVC_H_
#include <errno.h>
#include <string.h> /* strerror() */
#include <sys/ipc.h> /* IPC_CREAT */
#include <sys/shm.h> /* shmat() */
#include <sys/types.h> /* pid_t */
#include "inetd.h"
#include "queue.h" /* BSD sys/queue.h API */
typedef enum {
SVC_STOP = 0, /* Disabled */