Signed-off-by: Davide Pesavento <davidepesa@xxxxxxxxx> --- crda.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crda.c b/crda.c index e4cbe96..72ac42b 100644 --- a/crda.c +++ b/crda.c @@ -110,7 +110,7 @@ static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err, void *ar int isalpha_upper(char letter) { - if (letter >= 65 && letter <= 90) + if (letter >= 'A' && letter <= 'Z') return 1; return 0; } @@ -124,8 +124,7 @@ static int is_alpha2(char *alpha2) static int is_world_regdom(char *alpha2) { - /* ASCII 0 */ - if (alpha2[0] == 48 && alpha2[1] == 48) + if (alpha2[0] == '0' && alpha2[1] == '0') return 1; return 0; } -- 1.6.0.2 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html