X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libcpp%2Fsymtab.c;h=48a5338b1f865d6a26b8d67fd7c009bdb96d49b6;hp=5414ff05fc9dc3a5143b2818830a57b6565b6981;hb=33fa939f74daa3460d1560d23e26caeaf84828a1;hpb=dfecde36dddd77b80db5b9848187ad3f982960ba diff --git a/libcpp/symtab.c b/libcpp/symtab.c index 5414ff05fc9..48a5338b1f8 100644 --- a/libcpp/symtab.c +++ b/libcpp/symtab.c @@ -1,9 +1,10 @@ /* Hash tables. - Copyright (C) 2000, 2001, 2003, 2004, 2008 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2003, 2004, 2008, 2009 + Free Software Foundation, Inc. This program 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) any +Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -12,8 +13,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +along with this program; see the file COPYING3. If not see +. In other words, you are welcome to use, share and improve this program. You are forbidden to forbid anyone else to use, share and improve @@ -162,7 +163,7 @@ ht_lookup_with_hash (hash_table *table, const unsigned char *str, if (table->alloc_subobject) { - char *chars = table->alloc_subobject (len + 1); + char *chars = (char *) table->alloc_subobject (len + 1); memcpy (chars, str, len); chars[len] = '\0'; HT_STR (node) = (const unsigned char *) chars;