mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Avoid gcc warnings on Cygwin.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2009-12-22 Eric Blake <ebb9@byu.net> (tiny change)
|
||||||
|
|
||||||
|
Avoid gcc warnings on Cygwin.
|
||||||
|
* lib/getopt.c (_getopt_internal): Add braces. Fix indentation.
|
||||||
|
* tests/smtp.gperf: Cast arguments of <ctype.h> functions.
|
||||||
|
* tests/test2.c: Include <io.h>.
|
||||||
|
|
||||||
2009-12-22 Bruno Haible <bruno@clisp.org>
|
2009-12-22 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Avoid g++ warnings.
|
Avoid g++ warnings.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"Keep this file name-space clean" means, talk to drepper@gnu.org
|
"Keep this file name-space clean" means, talk to drepper@gnu.org
|
||||||
before changing it!
|
before changing it!
|
||||||
|
|
||||||
Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
|
Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
@@ -686,6 +686,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (opterr)
|
if (opterr)
|
||||||
|
{
|
||||||
if (argv[optind - 1][1] == '-')
|
if (argv[optind - 1][1] == '-')
|
||||||
/* --option */
|
/* --option */
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
@@ -696,6 +697,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
|||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: option `%c%s' doesn't allow an argument\n"),
|
_("%s: option `%c%s' doesn't allow an argument\n"),
|
||||||
argv[0], argv[optind - 1][0], pfound->name);
|
argv[0], argv[optind - 1][0], pfound->name);
|
||||||
|
}
|
||||||
|
|
||||||
nextchar += strlen (nextchar);
|
nextchar += strlen (nextchar);
|
||||||
|
|
||||||
|
|||||||
@@ -183,10 +183,10 @@ main (argc, argv)
|
|||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
for (k = 0; k < len; k++)
|
for (k = 0; k < len; k++)
|
||||||
if (isupper (s[k]))
|
if (isupper ((unsigned char) s[k]))
|
||||||
s[k] = tolower (s[k]);
|
s[k] = tolower ((unsigned char) s[k]);
|
||||||
else if (islower (s[k]))
|
else if (islower ((unsigned char) s[k]))
|
||||||
s[k] = toupper (s[k]);
|
s[k] = toupper ((unsigned char) s[k]);
|
||||||
hs = header_entry (s, len);
|
hs = header_entry (s, len);
|
||||||
if (!(hs && my_case_strcmp (hs->field_name, s) == 0))
|
if (!(hs && my_case_strcmp (hs->field_name, s) == 0))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
# undef O_BINARY
|
# undef O_BINARY
|
||||||
#endif
|
#endif
|
||||||
#if O_BINARY
|
#if O_BINARY
|
||||||
|
# include <io.h>
|
||||||
# define SET_BINARY(f) setmode (f, O_BINARY)
|
# define SET_BINARY(f) setmode (f, O_BINARY)
|
||||||
#else
|
#else
|
||||||
# define SET_BINARY(f) (void)0
|
# define SET_BINARY(f) (void)0
|
||||||
|
|||||||
Reference in New Issue
Block a user