mem2swap.c
changeset 167 7c6b221900bf
parent 139 cb1d3f4cf18e
child 169 df7c720bcaa6
equal deleted inserted replaced
166:ecd6492274ad 167:7c6b221900bf
    29 
    29 
    30 int main (int argc, char **argv)
    30 int main (int argc, char **argv)
    31 {
    31 {
    32     int i, n = 0;
    32     int i, n = 0;
    33 
    33 
    34     long int *p;
    34     unsigned long *p;
    35     long int *p_new;
    35     unsigned long *p_new;
    36 
    36 
    37     char *args[] = { CMD_FREE, CMD_ARGS, NULL };
    37     char *args[] = { CMD_FREE, CMD_ARGS, NULL };
    38 
    38 
    39     int size = sizeof (*p);
    39     unsigned long size = sizeof (*p);
    40     int megs = DEFAULT_MEGS;
    40     int megs = DEFAULT_MEGS;
    41     int pid;
    41     int pid;
    42 
    42 
    43     if (argc == 2)
    43     if (argc == 2)
    44         megs = atoi (argv[1]);
    44         megs = atoi (argv[1]);