~ubuntu-branches/ubuntu/natty/checkpolicy/natty

« back to all changes in this revision

Viewing changes to checkmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2010-03-28 09:59:27 UTC
  • mfrom: (1.1.13 upstream) (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100328095927-uzhis6ynaeqy8ufp
Tags: 2.0.21-1
* New upstream release
  + Add long options to checkpolicy and checkmodule by Guido
  Trentalancia <guido@trentalancia.com> 

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
        int ch;
164
164
        int show_version = 0;
165
165
        policydb_t modpolicydb;
 
166
        struct option long_options[] = {
 
167
                {"help", no_argument, NULL, 'h'},
 
168
                {"output", required_argument, NULL, 'o'},
 
169
                {"binary", no_argument, NULL, 'b'},
 
170
                {"version", no_argument, NULL, 'V'},
 
171
                {"handle-unknown", optional_argument, NULL, 'U'},
 
172
                {"debug", no_argument, NULL, 'd'},
 
173
                {"mls", no_argument, NULL, 'M'},
 
174
                {NULL, 0, NULL, 0}
 
175
        };
166
176
 
167
 
        while ((ch = getopt(argc, argv, "ho:dbVU:mM")) != EOF) {
 
177
        while ((ch = getopt_long(argc, argv, "ho:bVU:mM", long_options, NULL)) != -1) {
168
178
                switch (ch) {
169
179
                case 'h':
170
180
                        usage(argv[0]);