From 6b73edd95d603e27d55d4905134ac1327d426534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 27 Mar 2017 21:41:36 +0200 Subject: New upstream version 0.9.7 --- tests/uniname/test-uninames.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'tests/uniname/test-uninames.c') diff --git a/tests/uniname/test-uninames.c b/tests/uniname/test-uninames.c index 400b970..3b345e5 100644 --- a/tests/uniname/test-uninames.c +++ b/tests/uniname/test-uninames.c @@ -1,5 +1,5 @@ /* Test the Unicode character name functions. - Copyright (C) 2000-2003, 2005, 2007, 2009-2015 Free Software Foundation, + Copyright (C) 2000-2003, 2005, 2007, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -23,7 +23,6 @@ #include "xalloc.h" #include "uniname.h" -#include "progname.h" /* The names according to the UnicodeData.txt file, modified to contain the Hangul syllable names, as described in the Unicode 3.0 book. */ @@ -62,8 +61,6 @@ fill_names (const char *unicodedata_filename) while (fgets (line, sizeof line, stream)) { - int n; - int c; char *p; char *comment; unsigned int i; @@ -117,7 +114,6 @@ fill_names (const char *unicodedata_filename) static void fill_aliases (const char *namealiases_filename) { - int i; FILE *stream; char *field0; char *field1; @@ -133,8 +129,6 @@ fill_aliases (const char *namealiases_filename) while (fgets (line, sizeof line, stream)) { - int n; - int c; char *p; char *comment; unsigned int uc; @@ -354,11 +348,11 @@ test_alias_lookup () { if (result == UNINAME_INVALID) fprintf (stderr, "inverse name lookup of \"%s\" failed\n", - unicode_aliases[i]); + unicode_aliases[i].name); else fprintf (stderr, "inverse name lookup of \"%s\" returned 0x%04X\n", - unicode_aliases[i], result); + unicode_aliases[i].name, result); error = 1; } } @@ -372,8 +366,6 @@ main (int argc, char *argv[]) int error = 0; int i; - set_program_name (argv[0]); - for (i = 1; i < argc && strcmp (argv[i], "--") != 0; i++) fill_names (argv[i]); -- cgit v1.2.3