Changeset 0435fe41 in mainline for uspace/app/hdisk/input.c


Ignore:
Timestamp:
2013-08-27T00:32:08Z (12 years ago)
Author:
Dominik Taborsky (AT DOT) <brembyseznamcz>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61ab4a9, 802898f
Parents:
493b881
Message:

polishing libmbr, libgpt, hdisk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hdisk/input.c

    r493b881 r0435fe41  
    6868        int rc;
    6969        uint32_t val;
    70         /*char * str;
    71        
    72         rc = get_input_line(in, &str);
    73         if (rc != EOK) {
    74                 printf("Error reading input.\n");
    75                 return 0;
    76         }
    77        
    78         rc = str_uint8_t(str, NULL, 10, true, &val);
    79         if( != EOK) {
    80                 printf("Invalid value.\n");
    81                 return 0;
    82         }
    83        
    84         free(str);*/
    8570       
    8671        rc = convert(in, (conv_f) str_uint8_t, &val);
     
    9782        int rc;
    9883        uint32_t val;
    99         /*char * str;
    100        
    101         rc = get_input_line(in, &str);
    102         if (rc != EOK) {
    103                 printf("Error reading input.\n");
    104                 return 0;
    105         }
    106        
    107         rc = str_uint32_t(str, NULL, 10, true, &val);
    108         if( != EOK) {
    109                 printf("Invalid value.\n");
    110                 return 0;
    111         }
    112        
    113         free(str);*/
    11484       
    11585        rc = convert(in, (conv_f) str_uint32_t, &val);
     
    12696        int rc;
    12797        uint64_t val;
    128         /*char * str;
    129        
    130         rc = get_input_line(in, &str);
    131         if (rc != EOK) {
    132                 printf("Error reading input.\n");
    133                 return 0;
    134         }
    135        
    136         rc = str_uint32_t(str, NULL, 10, true, &val);
    137         if( != EOK) {
    138                 printf("Invalid value.\n");
    139                 return 0;
    140         }
    141        
    142         free(str);*/
    14398       
    14499        rc = convert(in, (conv_f) str_uint64_t, &val);
     
    155110        int rc;
    156111        size_t val;
    157        
    158         /*char * str;
    159         rc = get_input_line(in, &str);
    160         if (rc != EOK) {
    161                 printf("Error reading input.\n");
    162                 return 0;
    163         }
    164        
    165         rc = str_size_t(str, NULL, 10, true, &val);
    166         if (rc != EOK) {
    167                 printf("Invalid value.\n");
    168                 return 0;
    169         }
    170         free(str);*/
    171112       
    172113        rc = convert(in, (conv_f) str_size_t, &val);
     
    192133       
    193134        rc = str_f(str, NULL, 10, true, val);
    194         if(rc != EOK) {
     135        if (rc != EOK) {
    195136                printf("Invalid value.\n");
    196137        }
Note: See TracChangeset for help on using the changeset viewer.