Changeset 639

Show
Ignore:
Timestamp:
05/24/05 15:18:38 (3 years ago)
Author:
minaguib
Message:

Minor bugfix pointed out by David Vincelli: When an invalid command is given to wdctl, the error message showed "Invalid command: wdctl" instead of the actual command supplied

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog/ChangeLog

    r635 r639  
    11# $Header$ 
     2 
     32005-05-24 Mina Naguib <mina@ilesansfil.org> 
     4        * wdctl.c: Minor bugfix pointed out by David Vincelli: When an invalid 
     5        command is given to wdctl, the error message showed "Invalid command: 
     6        wdctl" instead of the actual command supplied 
    27 
    382005-05-23 Philippe April <philippe@ilesansfil.org> 
  • trunk/wifidog/src/wdctl.c

    r219 r639  
    135135            config.param = strdup(*(argv + optind + 1)); 
    136136    } 
    137  
    138     if (config.command == WDCTL_UNDEF) { 
    139             fprintf(stderr, "wdctl: Error: Invalid command \"%s\"\n", *argv); 
     137         else { 
     138            fprintf(stderr, "wdctl: Error: Invalid command \"%s\"\n", *(argv + optind)); 
    140139            usage(); 
    141140            exit(1);