mem2swap.c
changeset 63 5a82f89d607e
parent 51 a03372ef9714
child 64 993b97c4ad2d
equal deleted inserted replaced
62:b7061c0e239f 63:5a82f89d607e
    38     if (!set_limit (megs))
    38     if (!set_limit (megs))
    39         printf ("%d MB demanded ", megs);
    39         printf ("%d MB demanded ", megs);
    40     else {
    40     else {
    41         printf ("\tUsage: %s [MEM]\n\n", argv[0]);
    41         printf ("\tUsage: %s [MEM]\n\n", argv[0]);
    42         printf ("Report bugs to mbroeker@largo.homelinux.org\n");
    42         printf ("Report bugs to mbroeker@largo.homelinux.org\n");
       
    43 
       
    44         perror ("Limit Error");
    43         return EXIT_FAILURE;
    45         return EXIT_FAILURE;
    44     }
    46     }
    45 
    47 
    46     if ((p = malloc (N * size)) == NULL)
    48     if ((p = malloc (N * size)) == NULL)
    47         return EXIT_FAILURE;
    49         return EXIT_FAILURE;