Daniel's do_who and races

From: Trey Shewmake (yert@MAD.SCIENTIST.COM)
Date: 03/13/98


This is a fun one - I'm sure I'm missing something really simple
here, but my brain's fried, and I can't find it to save my life.

I'm running slightly modified circle 3.0 bpl 12.
When trying to add a race column to "do_who" in
act.informative.c, like so:

sprintf(Mort_buf, "%s[%2d %s %s] %s %s", Mort_buf, GET_LEVEL(wch),
              GET_RACE(wch), CLASS_ABBR(wch), GET_NAME(wch),
              GET_TITLE(wch));

or like so:

sprintf(Mort_buf, "%s[%2d %s %s] %s %s", Mort_buf, GET_LEVEL(wch),
              ((wch)->player.race), CLASS_ABBR(wch), GET_NAME(wch),
              GET_TITLE(wch));

I get the same warning on compilation:

act.informative.c:1045: warning: format argument is not a pointer
 (arg 5)

I'm stumped...GET_CLASS and GET_NAME, but no GET_RACE?
It's used several times in other portions of the code, but
I can't seem to get it to work here.
Anyways, thanks in advance.

Yert
(yert@mad.scientist.com)

--
Trey B. Shewmake                                  yert@mad.scientist.com
Traveller: The Spinward Marches MUD         crazy.net 9999
                         http://www.crazy.net/~spinward

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



This archive was generated by hypermail 2b30 : 12/15/00 PST