Use g_ascii_isspace() instead of isascii() && isspace().

This eliminates one more use of <ctype.h> macros; we're using
g_ascii_isXXX() instead of isXXX() elsewhere.

Change-Id: I184caeefab95dda2cf207acf9539eabbd7c32a51
Reviewed-on: https://code.wireshark.org/review/4767
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-10-16 23:53:21 -07:00
parent 63ab36be92
commit f90d8dcbbb
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
@ -112,7 +111,7 @@ skip_whitespace(FILE *ff)
{
int c;
while ((c = getc(ff)) != EOF && c != '\n' && isascii(c) && isspace(c))
while ((c = getc(ff)) != EOF && c != '\n' && g_ascii_isspace(c))
;
return c;
}