OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2009-10-21 Steve Ellcey <sje@cup.hp.com>
[pf3gnuchains/gcc-fork.git]
/
fixincludes
/
fixincl.c
diff --git
a/fixincludes/fixincl.c
b/fixincludes/fixincl.c
index
ccb2bad
..
9f399ab
100644
(file)
--- a/
fixincludes/fixincl.c
+++ b/
fixincludes/fixincl.c
@@
-2,24
+2,24
@@
files which are fixed to work correctly with ANSI C and placed in a
directory that GCC will search.
files which are fixed to work correctly with ANSI C and placed in a
directory that GCC will search.
- Copyright (C) 1997, 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 2000, 2004, 2009
+ Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version
2
, or (at your option)
+the Free Software Foundation; either version
3
, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more de
\a
tails.
+GNU General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING. If not, write to
-the Free Software Foundation, 51 Franklin Street, Fifth Floor,
-Boston, MA 02110-1301, USA. */
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
#include "fixlib.h"
#include "fixlib.h"
@@
-829,7
+829,7
@@
fix_with_system (tFixDesc* p_fixd,
/*
* Now add the fix number and file names that may be needed
*/
/*
* Now add the fix number and file names that may be needed
*/
- sprintf (pz_scan, " %ld '%s' '%s'
'%s'", p_fixd - fixDescList
,
+ sprintf (pz_scan, " %ld '%s' '%s'
", (long) (p_fixd - fixDescList)
,
pz_fix_file, pz_file_source, pz_temp_file);
}
else /* NOT an "internal" fix: */
pz_fix_file, pz_file_source, pz_temp_file);
}
else /* NOT an "internal" fix: */
@@
-1046,11
+1046,8
@@
fix_applies (tFixDesc* p_fixd)
if (pz_scan != (char *) NULL)
{
if (pz_scan != (char *) NULL)
{
- size_t name_len;
-
while ((pz_fname[0] == '.') && (pz_fname[1] == '/'))
pz_fname += 2;
while ((pz_fname[0] == '.') && (pz_fname[1] == '/'))
pz_fname += 2;
- name_len = strlen (pz_fname);
for (;;)
{
for (;;)
{