File xjobs-fix_warnings.patch of Package xjobs
--- xjobs.c.orig 2011-07-27 23:13:32.603000538 +0200
+++ xjobs.c 2011-07-27 23:15:36.362000538 +0200
@@ -14,6 +14,7 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
+#include <unistd.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
@@ -36,6 +37,7 @@
#endif
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <sys/wait.h>
#include <unistd.h>
#ifdef HAVE_VFORK_H
@@ -701,7 +703,7 @@
if (err)
(void) fprintf(stderr,"stderr: %s\n",err);
while (*argv) {
- (void) fprintf(stderr,"argument %d: <%s>\n",argv - j->args, *argv);
+ (void) fprintf(stderr,"argument %zd: <%s>\n",argv - j->args, *argv);
++argv;
}
}
@@ -1117,7 +1119,7 @@
break;
case 'q':
if (1 == sscanf(optarg,"%u",&q_len) && (q_len > 0))
- dbug("limiting queue length to %lu elements\n",q_len);
+ dbug("limiting queue length to %zu elements\n",q_len);
else
error("error in argument to option -q\n");
break;