X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=binutils%2Fresres.c;h=b5677d2bec50a1ec73ea0b1cb1cf4ad20f1adffb;hb=26144df5d2c0b2fa0244f3fb95f8ed2686ac0815;hp=4077c2d719d912fd774ec36b14c552e6c207c4e6;hpb=aef6203bd6d412d65f539a41f1abd07b14d7a05d;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/resres.c b/binutils/resres.c index 4077c2d719..b5677d2bec 100644 --- a/binutils/resres.c +++ b/binutils/resres.c @@ -1,5 +1,5 @@ /* resres.c: read_res_file and write_res_file implementation for windres. - Copyright 1998, 1999, 2001, 2002 Free Software Foundation, Inc. + Copyright 1998, 1999, 2001, 2002, 2007 Free Software Foundation, Inc. Written by Anders Norlander . This file is part of GNU Binutils. @@ -16,16 +16,17 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ /* FIXME: This file does not work correctly in a cross configuration. It assumes that it can use fread and fwrite to read and write integers. It does no swapping. */ +#include "sysdep.h" #include "bfd.h" -#include "bucomm.h" #include "libiberty.h" +#include "bucomm.h" #include "windres.h" #include @@ -408,7 +409,7 @@ write_res_data (data, size, count) size_t size; int count; { - if (fwrite (data, size, count, fres) != (size_t) count) + if ((size_t) fwrite (data, size, count, fres) != (size_t) count) fatal ("%s: could not write to file", filename); }