textdomain (PACKAGE);
while ((optc = getopt_long (argc, argv, "d:f:r:Rs:u", long_options, NULL))
- != EOF)
+ != -1)
switch (optc)
{
case 0:
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((optc = getopt_long (argc, argv, "+iu:", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "+iu:", longopts, NULL)) != -1)
{
switch (optc)
{
putenv (*envp);
optind = 0; /* Force GNU getopt to re-initialize. */
- while ((optc = getopt_long (argc, argv, "+iu:", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "+iu:", longopts, NULL)) != -1)
if (optc == 'u')
putenv (optarg); /* Requires GNU putenv. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((optc = getopt_long (argc, argv, "agnruG", longopts, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "agnruG", longopts, NULL)) != -1)
{
switch (optc)
{
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
switch (c)
{
optind = 0;
if ((optc = getopt_long (argc - (i - 1), fake_argv, "+n:",
- longopts, (int *) 0)) != EOF)
+ longopts, NULL)) != -1)
{
switch (optc)
{
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((optc = getopt_long (argc, argv, "p", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "p", longopts, NULL)) != -1)
{
switch (optc)
{
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
switch (c)
{
REQUIRE_ORDER (the '+' in the format string) and it abort on the
first non-option or negative number. */
while ((optc = getopt_long (argc, argv, "+0123456789f:s:w", long_options,
- (int *) 0)) != EOF)
+ NULL)) != -1)
{
if ('0' <= optc && optc <= '9')
{
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
switch (c)
{
/* Recognize the long options only. */
opterr = 0;
- while ((optc = getopt_long_only (argc, argv, "ag", longopts, (int *) 0))
- != EOF)
+ while ((optc = getopt_long_only (argc, argv, "ag", longopts, NULL)) != -1)
{
switch (optc)
{
simulate_login = 0;
change_environment = 1;
- while ((optc = getopt_long (argc, argv, "c:flmps:", longopts, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "c:flmps:", longopts, NULL)) != -1)
{
switch (optc)
{
append = 0;
ignore_interrupts = 0;
- while ((optc = getopt_long (argc, argv, "ai", long_options, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "ai", long_options, NULL)) != -1)
{
switch (optc)
{
silent = 0;
- while ((optc = getopt_long (argc, argv, "s", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "s", longopts, NULL)) != -1)
{
switch (optc)
{
toprint = 0;
- while ((c = getopt_long (argc, argv, "snrvpma", long_options, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "snrvpma", long_options, NULL)) != -1)
{
switch (c)
{
textdomain (PACKAGE);
#ifdef WHO
- while ((optc = getopt_long (argc, argv, "imqsuwHT", longopts, &longind))
+# define WU_OPTS "imqsuwHT"
#else
- while ((optc = getopt_long (argc, argv, "", longopts, &longind))
-#endif /* WHO */
- != EOF)
+# define WU_OPTS ""
+#endif
+
+ while ((optc = getopt_long (argc, argv, WU_OPTS, longopts, &longind)) != -1)
{
switch (optc)
{
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
switch (c)
{