Proper Datatypes to leave the 80's master remote/master
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Fri, 27 Dec 2013 16:00:09 +0100
changeset 167 7c6b221900bf
parent 166 ecd6492274ad
child 168 dfb60716880c
Proper Datatypes to leave the 80's
mem2swap.c
set_limit.c
--- a/mem2swap.c
+++ b/mem2swap.c
@@ -31,12 +31,12 @@
 {
     int i, n = 0;
 
-    long int *p;
-    long int *p_new;
+    unsigned long *p;
+    unsigned long *p_new;
 
     char *args[] = { CMD_FREE, CMD_ARGS, NULL };
 
-    int size = sizeof (*p);
+    unsigned long size = sizeof (*p);
     int megs = DEFAULT_MEGS;
     int pid;
 
--- a/set_limit.c
+++ b/set_limit.c
@@ -8,7 +8,7 @@
 
 #define MINIMUM (2*1024*1024)
 
-int set_limit (int megs)
+int set_limit (unsigned long megs)
 {
     struct rlimit rlim;