ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/motd.c
(Generate patch)

Comparing ircd-hybrid-8/src/motd.c (file contents):
Revision 1309 by michael, Sun Mar 25 11:24:18 2012 UTC vs.
Revision 1325 by michael, Sat Mar 31 10:29:02 2012 UTC

# Line 28 | Line 28
28   #include "ircd.h"
29   #include "fdlist.h"
30   #include "s_bsd.h"
31 #include "fileio.h"
31   #include "conf.h"
32   #include "send.h"
33   #include "numeric.h"
# Line 167 | Line 166 | read_message_file(MessageFile *MessageFi
166  
167    char buffer[MESSAGELINELEN];
168    char *p;
169 <  FBFILE *file;
169 >  FILE *file;
170  
171    for (mptr = MessageFileptr->contentsOfFile; mptr; mptr = next_mptr)
172    {
# Line 191 | Line 190 | read_message_file(MessageFile *MessageFi
190                 local_tm->tm_hour,
191                 local_tm->tm_min);
192  
193 <  if ((file = fbopen(MessageFileptr->fileName, "r")) == NULL)
193 >  if ((file = fopen(MessageFileptr->fileName, "r")) == NULL)
194      return(-1);
195  
196 <  while (fbgets(buffer, sizeof(buffer), file))
196 >  while (fgets(buffer, sizeof(buffer), file))
197    {
198      if ((p = strchr(buffer, '\n')) != NULL)
199        *p = '\0';
# Line 217 | Line 216 | read_message_file(MessageFile *MessageFi
216      }
217    }
218  
219 <  fbclose(file);
219 >  fclose(file);
220    return(0);
221   }
222  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)