time and sprintf

From: Jason Stortz (JI-Stortz@WIU.EDU)
Date: 08/12/00

Dear Peers,

I am trying to figure out how to avoid the follow warnings when I compile my
source code...

act.imp.c: In function 'do_timecmd':
act.imp.c:377 warning: int format, __time_t arg (arg3)
act.imp.c:377: warning: int format, __time_t arg (arg 4)

I am fairly sure this is due to a formatting problem.  You'll see what I
here is the exact code that causes the two errors:

sprintf(report,"Timeing took %d.%06d

I remember that you need to do something different with the time items
running it through any kind of printf or what not.  Maybe there is even a
different print command to be used.  Anyway, the whole things WORKS, but I
hate having any warnings at all when I compile.  Warning now, error later as
we all know. =)

Thanks for the time,

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |

This archive was generated by hypermail 2b30 : 04/11/01 PDT