NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-i386/50515: src/sys/arch/i386/stand/lib/dosfile.c:63: bad switch statement ?
>Number: 50515
>Category: port-i386
>Synopsis: src/sys/arch/i386/stand/lib/dosfile.c:63: bad switch statement ?
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 10 22:10:00 +0000 2015
>Originator: David Binderman
>Release: cvs dated 20151210
>Organization:
>Environment:
>Description:
[src/sys/arch/i386/stand/lib/dosfile.c:63] -> [src/sys/arch/i386/stand/lib/dosfile.c:66]: (warning) Variable 'err' is reassigned a value before the old one has been used. 'break;' missing?
Source code is
switch (doserrno) {
case 1:
case 4:
case 12:
default:
err = EIO;
case 2:
case 3:
err = ENOENT;
case 5:
err = EPERM;
case 6:
err = EINVAL;
}
Someone doesn't know how to code in C. Suggest code rework.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index