Mercurial > noffle
changeset 295:4426fde0a72c noffle
[svn] * src/util.c: Add cast to deal with compiler warning.
author | bears |
---|---|
date | Fri, 31 Jan 2003 15:35:14 +0000 |
parents | c2704f070c5c |
children | 62cdb3113115 |
files | src/util.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util.c Fri Jan 31 15:34:47 2003 +0000 +++ b/src/util.c Fri Jan 31 15:35:14 2003 +0000 @@ -1,7 +1,7 @@ /* util.c - $Id: util.c 413 2002-12-27 21:48:25Z bears $ + $Id: util.c 427 2003-01-31 15:35:14Z bears $ */ #if HAVE_CONFIG_H @@ -278,7 +278,7 @@ if ( ! ( f = fopen( file, "r" ) ) ) return FALSE; - if ( fscanf( f, "%lu", result ) != 1 ) + if ( fscanf( f, "%lu", (unsigned long *) result ) != 1 ) { Log_err( "File %s corrupted", file ); fclose( f );