# HG changeset patch # User Markus Bröker # Date 1388156409 -3600 # Node ID 7c6b221900bf3f867a7e513afa5f5f2553e6274a # Parent ecd6492274ad4c94dbf3b905c8d0dcd215047f49 Proper Datatypes to leave the 80's diff --git a/mem2swap.c b/mem2swap.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; diff --git a/set_limit.c b/set_limit.c --- 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;