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 /src/unpack.c | |
parent | 8183122e10463954453d756f4a037f9ea3f1c5c5 (diff) | |
download | dpkg-45dcca46d83ea52d683afa4b486d9321148b46cf.tar.gz |
Switch code to use the new C locale character type functions
Diffstat (limited to 'src/unpack.c')
-rw-r--r-- | src/unpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unpack.c b/src/unpack.c index 954b6b549..bdd16f1b1 100644 --- a/src/unpack.c +++ b/src/unpack.c @@ -30,7 +30,6 @@ #include <assert.h> #include <errno.h> -#include <ctype.h> #include <string.h> #include <time.h> #include <utime.h> @@ -42,6 +41,7 @@ #include <stdio.h> #include <dpkg/i18n.h> +#include <dpkg/c-ctype.h> #include <dpkg/dpkg.h> #include <dpkg/dpkg-db.h> #include <dpkg/pkg.h> @@ -229,7 +229,7 @@ deb_parse_conffiles(struct pkginfo *pkg, const char *control_conffiles, if (p[-1] != '\n') ohshit(_("conffile name '%s' is too long, or missing final newline"), conffilenamebuf); - while (p > conffilenamebuf && isspace(p[-1])) + while (p > conffilenamebuf && c_isspace(p[-1])) --p; if (p == conffilenamebuf) continue; |