aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-04-29 19:18:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:19 -0400
commit2e0fb404c86d6c86dc33e284310eb5d28d192dcf (patch)
treec75a1dd1cab54473d3174aa00fc49d18deabfa5e /net/sunrpc/cache.c
parent095d141b2e40665289d44a42d387ffac2841ef82 (diff)
lib, net: make isodigit() public and use it
There are at least two users of isodigit(). Let's make it a public function of ctype.h. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r--net/sunrpc/cache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 25d58e766014..ce2d180d05a4 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -1208,7 +1208,6 @@ EXPORT_SYMBOL_GPL(sunrpc_cache_pipe_upcall);
1208 * key and content are both parsed by cache 1208 * key and content are both parsed by cache
1209 */ 1209 */
1210 1210
1211#define isodigit(c) (isdigit(c) && c <= '7')
1212int qword_get(char **bpp, char *dest, int bufsize) 1211int qword_get(char **bpp, char *dest, int bufsize)
1213{ 1212{
1214 /* return bytes copied, or -1 on error */ 1213 /* return bytes copied, or -1 on error */