Changeset 473 for trunk/user/ksh


Ignore:
Timestamp:
Aug 21, 2018, 6:01:01 PM (6 years ago)
Author:
alain
Message:

Fix several GCC warning related to the -Wextra compilation option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/ksh/ksh.c

    r469 r473  
    108108        path = argv[1];
    109109
    110     printf("  error: not implemented yet\n");
     110    printf("  error: not implemented yet\n", argc, argv );
    111111
    112112/*
     
    167167        path = argv[1];
    168168
    169     printf("  error: not implemented yet\n");
     169    printf("  error: not implemented yet\n", argc, argv );
    170170
    171171    // release semaphore to get next command
     
    189189        }
    190190
    191     printf("  error: not implemented yet\n");
     191    printf("  error: not implemented yet\n", argc, argv );
    192192
    193193/*
     
    546546        unsigned int i;
    547547
     548        if (argc != 1)
     549    {
     550                printf("  usage: %s\n", argv[0], argc );
     551                return;
     552        }
     553
    548554        printf("--- registered commands ---\n");
    549555        for (i = 0; i < LOG_DEPTH; i++)
     
    639645        if (argc != 1)
    640646    {
    641                 printf("  usage: pwd\n");
     647                printf("  usage: %s\n", argv[0]);
    642648                return;
    643649        }
     
    664670        if (argc != 2)
    665671    {
    666                 printf("  usage: rm pathname\n");
     672                printf("  usage: %s pathname\n", argv[0]);
    667673                return;
    668674        }
     
    10411047}  // end interactive()
    10421048
    1043 ///////////////////////////////////
    1044 int main( int argc , char *argv[] )
     1049//////////
     1050int main()
    10451051{
    10461052    unsigned int cxy;             // owner cluster identifier for this KSH process
     
    10671073        exit( 1 );
    10681074    }
    1069 
    1070 printf("\n@@@ in KSH %s : &semaphore = %x\n", __FUNCTION__, &semaphore );
    10711075
    10721076    // initialize interactive thread attributes
Note: See TracChangeset for help on using the changeset viewer.