I'm switching up the do_who code to look a little better. I'm using smaugfuss 1.7 When I compiled I got these two errors and I don't know how to fix them:
Here's the two lines:
and
What's wrong with those two lines?
make -s smaug
Compiling o/act_info.o....
act_info.c: In function `do_who':
act_info.c:2960: warning: format not a string literal and no format arguments
act_info.c:2984: warning: format not a string literal and no format arguments
make[1]: *** [o/act_info.o] Error 1
make: *** [all] Error 2Here's the two lines:
for ( cur_who = first_imm; cur_who; cur_who = next_who )
{
if ( !ch )
fprintf( whoout, cur_who->text ); <--------Offending line
else
send_to_pager( cur_who->text, ch );
next_who = cur_who->next;
DISPOSE( cur_who->text );
DISPOSE( cur_who );
} and
for ( cur_who = first_mortal; cur_who; cur_who = next_who )
{
if ( !ch )
fprintf( whoout, cur_who->text ); <-------------Second Offending Line
else
send_to_pager( cur_who->text, ch );
next_who = cur_who->next;
DISPOSE( cur_who->text );
DISPOSE( cur_who );
} What's wrong with those two lines?