Mercurial > hg > early-roguelike
comparison rogue4/state.c @ 215:1b73a8641b37
rogue4: fix most GCC5 warnings.
Converting all function definitions to ANSI style accounts for most of
the change. This has exposed other problems, such as daemons not
actually being their stated type, that will require more careful
solutions.
author | John "Elwin" Edwards |
---|---|
date | Wed, 27 Jan 2016 19:41:05 -0500 |
parents | 09db0cf536af |
children | 696277507a2e |
comparison
equal
deleted
inserted
replaced
214:e5a15b09ce1d | 215:1b73a8641b37 |
---|---|
1333 { | 1333 { |
1334 if (rs_read_int(inf,&cnt) != 0) | 1334 if (rs_read_int(inf,&cnt) != 0) |
1335 { | 1335 { |
1336 for (i = 0; i < cnt; i++) | 1336 for (i = 0; i < cnt; i++) |
1337 { | 1337 { |
1338 l = new_item(sizeof(THING)); | 1338 l = new_item(); |
1339 memset(l,0,sizeof(THING)); | 1339 memset(l,0,sizeof(THING)); |
1340 l->l_prev = previous; | 1340 l->l_prev = previous; |
1341 if (previous != NULL) | 1341 if (previous != NULL) |
1342 previous->l_next = l; | 1342 previous->l_next = l; |
1343 rs_read_object(inf,l); | 1343 rs_read_object(inf,l); |