mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 16:05:34 +07:00
staging: usbip: userspace: libsrc: replace numbers by ascii
replace numbers in code by ascii text constants as suggested by Dan Carpenter: http://driverdev.linuxdriverproject.org/pipermail/devel/2013-February/035907.html Signed-off-by: Stefan Reif <ke42caxa@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
986d758435
commit
69f452635c
@ -491,10 +491,10 @@ static void parse(FILE *f)
|
||||
while (fgets(buf, sizeof(buf), f)) {
|
||||
linectr++;
|
||||
/* remove line ends */
|
||||
cp = strchr(buf, 13);
|
||||
cp = strchr(buf, '\r');
|
||||
if (cp)
|
||||
*cp = 0;
|
||||
cp = strchr(buf, 10);
|
||||
cp = strchr(buf, '\n');
|
||||
if (cp)
|
||||
*cp = 0;
|
||||
if (buf[0] == '#' || !buf[0])
|
||||
|
Loading…
Reference in New Issue
Block a user