Fix common.h includes
This commit is contained in:
parent
b0c5baa45d
commit
b89b8cfbc7
@ -41,7 +41,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
#include "contain.h"
|
||||
|
||||
#include <dirent.h>
|
||||
|
1
net.c
1
net.c
@ -18,6 +18,7 @@
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
#include "net.h"
|
||||
|
||||
#include <arpa/inet.h>
|
||||
|
2
nsjail.c
2
nsjail.c
@ -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"
|
||||
|
2
nsjail.h
2
nsjail.h
@ -23,4 +23,6 @@
|
||||
#ifndef _NSJAIL_H
|
||||
#define _NSJAIL_H
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#endif /* _NSJAIL_H */
|
||||
|
@ -18,6 +18,7 @@
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef _PROC_H
|
||||
#define _PROC_H
|
||||
|
||||
|
3
util.h
3
util.h
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user