Subversion Repositories HelenOS

Rev

Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4692
Line 32... Line 32...
32
#include <stdlib.h>
32
#include <stdlib.h>
33
#include <unistd.h>
33
#include <unistd.h>
34
#include <fcntl.h>
34
#include <fcntl.h>
35
#include <dirent.h>
35
#include <dirent.h>
36
#include <getopt.h>
36
#include <getopt.h>
-
 
37
#include <mem.h>
-
 
38
#include <string.h>
37
 
39
 
38
#include "config.h"
40
#include "config.h"
39
#include "errors.h"
41
#include "errors.h"
40
#include "util.h"
42
#include "util.h"
41
#include "entry.h"
43
#include "entry.h"
Line 205... Line 207...
205
            rm.safe = 1;
207
            rm.safe = 1;
206
            break;
208
            break;
207
        }
209
        }
208
    }
210
    }
209
 
211
 
210
    if (optind == argc) {
212
    if ((unsigned) optind == argc) {
211
        cli_error(CL_EFAIL,
213
        cli_error(CL_EFAIL,
212
            "%s: insufficient arguments. Try %s --help", cmdname, cmdname);
214
            "%s: insufficient arguments. Try %s --help", cmdname, cmdname);
213
        rm_end(&rm);
215
        rm_end(&rm);
214
        return CMD_FAILURE;
216
        return CMD_FAILURE;
215
    }
217
    }