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:
Jaromir Capik 2014-08-26 15:24:55 +02:00
parent 41f7ff3ea8
commit 5d818a7a6d

View File

@ -1,3 +1,4 @@
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
@ -36,7 +37,6 @@ int ns_read(pid_t pid, proc_t *ns_task)
}
#ifdef TEST_PROGRAM
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello, World!\n");