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:
		@@ -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");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user