Changeset 478dc8e


Ignore:
Timestamp:
Apr 19, 2013, 3:22:54 AM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10
Children:
5175cf8
Parents:
499224d
git-author:
Anders Kaseorg <andersk@mit.edu> (04/10/13 01:04:50)
git-committer:
Anders Kaseorg <andersk@mit.edu> (04/19/13 03:22:54)
Message:
zcrypt: Use getopt_long

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    r6249a88f r478dc8e  
    1616#include <sys/wait.h>
    1717#include <ctype.h>
     18#include <getopt.h>
    1819
    1920#include <config.h>
     
    116117  int mode = M_NONE;
    117118
    118   char c;
     119  int c;
    119120
    120121  int messageflag = FALSE;
     
    122123  zoptions.flags = 0;
    123124
    124   while ((c = getopt(argc, argv, "ZDERSF:c:i:advqtluons:f:m")) != (char)EOF)
     125  static const struct option options[] = {
     126    {NULL, 0, NULL, 0}
     127  };
     128
     129  while ((c = getopt_long(argc, argv, "ZDERSF:c:i:advqtluons:f:m", options, NULL)) != -1)
    125130  {
    126131    switch(c)
Note: See TracChangeset for help on using the changeset viewer.