Skip to content

Commit

Permalink
staging: usbip: userspace: libsrc: replace numbers by ascii
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Reif authored and Greg Kroah-Hartman committed Apr 5, 2013
1 parent 986d758 commit 69f4526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/usbip/userspace/libsrc/names.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 69f4526

Please sign in to comment.