Fix common.h includes

This commit is contained in:
Robert Swiecki 2016-03-01 17:03:11 +01:00
parent b0c5baa45d
commit b89b8cfbc7
9 changed files with 11 additions and 2 deletions

View File

@ -41,7 +41,6 @@
#include <sys/types.h>
#include <unistd.h>
#include "common.h"
#include "log.h"
#include "util.h"

View File

@ -18,6 +18,7 @@
limitations under the License.
*/
#include "contain.h"
#include <dirent.h>

1
log.h
View File

@ -18,6 +18,7 @@
limitations under the License.
*/
#ifndef _LOG_H
#define _LOG_H

1
net.c
View File

@ -18,6 +18,7 @@
limitations under the License.
*/
#include "net.h"
#include <arpa/inet.h>

1
net.h
View File

@ -18,6 +18,7 @@
limitations under the License.
*/
#ifndef _NET_H
#define _NET_H

View File

@ -18,6 +18,7 @@
limitations under the License.
*/
#include "nsjail.h"
#include <errno.h>
@ -30,7 +31,6 @@
#include <unistd.h>
#include "cmdline.h"
#include "common.h"
#include "log.h"
#include "net.h"
#include "subproc.h"

View File

@ -23,4 +23,6 @@
#ifndef _NSJAIL_H
#define _NSJAIL_H
#include "common.h"
#endif /* _NSJAIL_H */

View File

@ -18,6 +18,7 @@
limitations under the License.
*/
#ifndef _PROC_H
#define _PROC_H

3
util.h
View File

@ -18,12 +18,15 @@
limitations under the License.
*/
#ifndef _UTIL_H
#define _UTIL_H
#include <stdbool.h>
#include <stdlib.h>
#include "common.h"
void *utilMalloc(size_t sz);
ssize_t utilWriteToFd(int fd, const void *buf, size_t len);
ssize_t utilReadFromFd(int fd, void *buf, size_t len);