Changeset 5f39027 in mainline for uspace/app/df/df.c


Ignore:
Timestamp:
2019-02-10T20:46:29Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
f52ce72
Parents:
d55abe8b
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-08 13:21:37)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-10 20:46:29)
Message:

removing dead code from app/df

The app used to have a test for missing
option-values. But since none of the
options actually demands a value that
code can be considered dead-code and
can be removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/df/df.c

    rd55abe8b r5f39027  
    7070
    7171        /* Parse command-line options */
    72         while ((optres = getopt(argc, argv, ":ubh")) != -1) {
     72        while ((optres = getopt(argc, argv, "ubh")) != -1) {
    7373                switch (optres) {
    7474                case 'h':
     
    7878                case 'b':
    7979                        display_blocks = true;
    80                         break;
    81 
    82                 case ':':
    83                         fprintf(stderr, "Option -%c requires an operand\n",
    84                             optopt);
    85                         errflg++;
    8680                        break;
    8781
Note: See TracChangeset for help on using the changeset viewer.