X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Floadables%2Fhead.c;h=90526895534f1ee6b3b398ec863110bf836a0212;hb=f73dda092b33638d2d5e9c35375f687a607b5403;hp=d2dcb72b0520a00ef1227b989760e81c2ac5be98;hpb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;p=platform%2Fupstream%2Fbash.git diff --git a/examples/loadables/head.c b/examples/loadables/head.c index d2dcb72..9052689 100644 --- a/examples/loadables/head.c +++ b/examples/loadables/head.c @@ -16,7 +16,7 @@ #include #include -#include +#include "chartypes.h" #include "builtins.h" #include "shell.h" @@ -37,7 +37,7 @@ munge_list (list) for (l = list; l; l = l->next) { arg = l->word->word; - if (arg[0] != '-' || arg[1] == '-' || (isdigit(arg[1]) == 0)) + if (arg[0] != '-' || arg[1] == '-' || (DIGIT(arg[1]) == 0)) return; /* We have -[0-9]* */ wd = make_bare_word (arg+1);