set_limit.c
changeset 167 7c6b221900bf
parent 77 49e0babccb23
equal deleted inserted replaced
166:ecd6492274ad 167:7c6b221900bf
     6 #include <errno.h>
     6 #include <errno.h>
     7 #include <sys/resource.h>
     7 #include <sys/resource.h>
     8 
     8 
     9 #define MINIMUM (2*1024*1024)
     9 #define MINIMUM (2*1024*1024)
    10 
    10 
    11 int set_limit (int megs)
    11 int set_limit (unsigned long megs)
    12 {
    12 {
    13     struct rlimit rlim;
    13     struct rlimit rlim;
    14 
    14 
    15     megs *= 1024 * 1024;
    15     megs *= 1024 * 1024;
    16 
    16