Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk main.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Feb 2002 19:26:46 -0600 (CST)
guy         2002/02/23 19:26:46 CST

  Modified files:
    gtk                  main.c 
  Log:
  From Peter Valchev: fix editcap to assign the result of "getopt()" to an
  "int" and to check "getopt()"s return value with -1 rather than EOF.
  
  Fix other "getopt()" loops to check against -1 as well (EOF is -1 on
  most if not all platforms, but the Single UNIX Specification says
  "getopt()" returns -1, so we should check against -1, not EOF).
  
  Revision  Changes    Path
  1.234     +2 -2      ethereal/gtk/main.c