linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* limited range of data error
@ 2000-03-20 22:28 Rhys
  2000-03-20 23:12 ` Gabriel Paubert
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Rhys @ 2000-03-20 22:28 UTC (permalink / raw)
  To: linuxppc-dev


When i try to compile i get these errors:

act_comm.c: In function 'send_ascii_title':
act_comm.c:2234: warning: comparison is always true due to
limited range of data type

This is from a redhat system. I think there are
problems with me missing the files related to
fgetc() and fopen(). Anyone have any ideas for
how to get this to work?

Relevent code is:

send_ascii_title( CHAR_DATA *ch )
{
   FILE *rpfile;
   int num=0;
   char BUFF[MAX_STRING_LENGTH];

   if ((rpfile = fopen(ASCTITTLE_FILE, "r")) !=NULL) {
     while (( BUFF[num]=fgetc(rpfile)) != OEF) // Line 2234
        num++;
     fclose(rpfile);
   BUFF[num] = 0;
   write_to_buffer( ch->desc, BUFF, num );
   }
}

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2000-04-09 17:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-20 22:28 limited range of data error Rhys
2000-03-20 23:12 ` Gabriel Paubert
2000-03-21  1:54 ` David A. Gatwood
2000-03-21  2:22   ` Gabriel Paubert
2000-03-21 19:48 ` stty crtscts < /dev/ttyS1 DeRobertis
2000-03-22 16:05   ` Matt Haffner
     [not found]     ` <l03130300b4ff357b23e8@[216.164.129.33]>
2000-03-23 11:17       ` stty crtscts < /dev/ttyS1 [603ev] ce
2000-03-25  6:06         ` DeRobertis
2000-03-23 13:34     ` communicate with peripherics ? Franck Chionna
     [not found]   ` <l03130304b50c8e1b783f@[216.164.131.253]>
2000-04-08  0:35     ` stty crtscts < /dev/ttyS1 Giuliano Pochini
2000-04-08  4:05       ` DeRobertis
2000-04-08 17:08         ` Greg Noel
2000-04-09  0:02           ` Giuliano Pochini
2000-04-09 17:42           ` DeRobertis
2000-04-09  0:20         ` Giuliano Pochini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).