Re: Ascii Pfile write problem

From: Welcor (welcor@dune.net)
Date: 10/31/01


----- Original Message -----
From: "Brian Jenkins" <brianjenkins@ATT.NET>

> db.c: In function 'save_player_index':
> db.c:528: warning: int format, long int arg (arg 3)
> db.c:528: warning: int format, time_t arg (arg 7)

>     for(i = 0; i <= top_of_p_table; i++)
>         if(*player_table[i].name) {
>           sprintbits(player_table[i].flags, bits);
>           fprintf(index_file, "%d %s %d %s %d\n", player_table[i].id,
>      player_table[i].name, player_table[i].level, *bits ? bits : "0",
> 528: player_table[i].last);
>           }

Change the above to:
           fprintf(index_file, "%ld %s %d %s %ld\n", player_table[i].id,
      player_table[i].name, player_table[i].level, *bits ? bits : "0",
      (long)player_table[i].last);
           }

That should take care of the player table.

> db.c: In function 'store_to_char':
> db.c:2406: warning: left-hand operand of comma expression has no effect
> db.c: In function 'char_to_store':
> db.c:2522: warning: int format, time_t arg (arg 3)
> db.c:2524: warning: int format, time_t arg (arg 3)
> db.c:2530: warning: int format, long int arg (arg 3)
> db.c:2531: warning: int format, long int arg (arg 3)
>
> mail.c: In function 'mail_recip_ok':
> mail.c:64: warning: passing arg 2 of 'load_char' from incompatible
> pointer type
> mail.c:65: warning: passing arg 1 of 'store_to_char' from incompatible
> pointer type
>
>  Both of the arg's in the mail.c warnings refer to &tmp_store

Better give us some code. Get a good editor, for instance ultraedit
(which I use - get it from tucows), so you can see those line numbers.

Welcor

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST