diff options
author | Guillem Jover <guillem@debian.org> | 2014-12-28 20:14:48 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-01-28 20:50:29 +0100 |
commit | 45dcca46d83ea52d683afa4b486d9321148b46cf (patch) | |
tree | 538fde63d7ca9510562c15c4f52802da717947b0 /dpkg-deb/info.c | |
parent | 8183122e10463954453d756f4a037f9ea3f1c5c5 (diff) | |
download | dpkg-45dcca46d83ea52d683afa4b486d9321148b46cf.tar.gz |
Switch code to use the new C locale character type functions
Diffstat (limited to 'dpkg-deb/info.c')
-rw-r--r-- | dpkg-deb/info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c index b3a660269..9640ea4bb 100644 --- a/dpkg-deb/info.c +++ b/dpkg-deb/info.c @@ -28,7 +28,6 @@ #include <errno.h> #include <limits.h> -#include <ctype.h> #include <string.h> #include <fcntl.h> #include <dirent.h> @@ -38,6 +37,7 @@ #include <stdio.h> #include <dpkg/i18n.h> +#include <dpkg/c-ctype.h> #include <dpkg/dpkg.h> #include <dpkg/dpkg-db.h> #include <dpkg/parsedump.h> @@ -159,7 +159,7 @@ info_list(const char *debar, const char *dir) if (getc(cc) == '!') { while ((c= getc(cc))== ' '); p=interpreter; *p++='#'; *p++='!'; il=2; - while (il<INTERPRETER_MAX && !isspace(c) && c!=EOF) { + while (il < INTERPRETER_MAX && !c_isspace(c) && c != EOF) { *p++= c; il++; c= getc(cc); } *p = '\0'; |