Sophie

Sophie

distrib > Mageia > 1 > x86_64 > media > core-release-src > by-pkgid > 3880c38a226b29abb702231533269ac2 > files > 3

xsysinfo-1.7-26.mga1.src.rpm

--- xsysinfo-1.7/sysinfo.c.includes	1999-05-05 08:20:09.000000000 +0200
+++ xsysinfo-1.7/sysinfo.c	2003-09-26 17:41:26.000000000 +0200
@@ -24,6 +24,7 @@
  
 #include "sysinfo.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <fcntl.h>
--- xsysinfo-1.7/xsysinfo.c.includes	1999-05-05 07:58:03.000000000 +0200
+++ xsysinfo-1.7/xsysinfo.c	2003-09-26 17:42:05.000000000 +0200
@@ -27,6 +27,7 @@
 #include <X11/Xaw/Label.h>
 #include "BarGauge.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include "sysinfo.h"
 
 #define norm(x,max)	((max) == 0 ? 0 : (double)(x) / (max))
@@ -325,6 +326,7 @@ static void show_usage()
 	fprintf(stderr,"\nor one of the standard toolkit options.\n\n");
 }
 
+int
 main( argc, argv )
 	int argc;
 char **argv;
@@ -358,4 +360,5 @@ char **argv;
 
 	XtRealizeWidget(toplevel);
 	XtAppMainLoop(context);
+	return 0;
 }