commit | 69f452635cf863f9356996218d25bbe2a4e35f2d | [log] [tgz] |
---|---|---|
author | Stefan Reif <ke42caxa@cip.cs.fau.de> | Thu Apr 04 16:03:02 2013 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Apr 05 14:22:49 2013 -0700 |
tree | dba717aa2919f5277dedbee50129a4ce5c9793e0 | |
parent | 986d75843555d0f6bc4acd11276c7f8f77d246b8 [diff] |
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>
diff --git a/drivers/staging/usbip/userspace/libsrc/names.c b/drivers/staging/usbip/userspace/libsrc/names.c index 3b151df..72480fb 100644 --- a/drivers/staging/usbip/userspace/libsrc/names.c +++ b/drivers/staging/usbip/userspace/libsrc/names.c
@@ -491,10 +491,10 @@ 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])