summaryrefslogtreecommitdiffstats
path: root/dmake/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmake/state.c')
-rw-r--r--dmake/state.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dmake/state.c b/dmake/state.c
index 7b5a2fe79ab8..509377539aee 100644
--- a/dmake/state.c
+++ b/dmake/state.c
@@ -1,4 +1,4 @@
-/* RCS $Id: state.c,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $
+/* RCS $Id: state.c,v 1.2 2006-04-20 12:02:17 hr Exp $
--
-- SYNOPSIS
-- .KEEP_STATE state file management
@@ -122,8 +122,9 @@ Write_state()
if( Search_table(Defs, sp->st_name, &hv, &hk) ) {
fprintf( fp, "%s\n", sp->st_name );
fprintf( fp, "%d\n", sp->st_count );
- fprintf( fp, "%lu\n", sp->st_dkey );
- fprintf( fp, "%lu\n", sp->st_key );
+ /* long unsigned can be != uint32, silence the warning. */
+ fprintf( fp, "%lu\n", (unsigned long)sp->st_dkey );
+ fprintf( fp, "%lu\n", (unsigned long)sp->st_key );
}
}