library: fixing stdio.h include position in nsutils.c
The previous commit removes the stdio_ext.h header, but the ns_read function calls snprintf that needs stdio.h and therefore moving the stdio.h include from the bottom test program to the top line.
This commit is contained in:
parent
41f7ff3ea8
commit
5d818a7a6d
@ -1,3 +1,4 @@
|
|||||||
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -36,7 +37,6 @@ int ns_read(pid_t pid, proc_t *ns_task)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST_PROGRAM
|
#ifdef TEST_PROGRAM
|
||||||
#include <stdio.h>
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
printf("Hello, World!\n");
|
printf("Hello, World!\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user