Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 63011c53 in mainline


Ignore:
Timestamp:
2017-10-04T18:22:12Z (4 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master
Children:
18902ca6
Parents:
0e3b402
Message:

pcnt is unsigned, so it can't be used this way.

Detected by clang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/src/fdisk.c

    r0e3b402 r63011c53  
    10151015        max_blocks = fdisk_ba_align_up(dev, max_blocks);
    10161016
    1017         pcnt = -1;
    1018 
    10191017        switch (pspec->fstype) {
    10201018        case fs_exfat:
     
    10321030        case fs_cdfs:
    10331031                return EINVAL; /* You cannot create an ISO partition */
    1034         }
    1035 
    1036         if (pcnt < 0)
     1032        default:
    10371033                return EINVAL;
     1034        }
    10381035
    10391036        if (pspec->pkind == lpk_logical) {
Note: See TracChangeset for help on using the changeset viewer.