| 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" |
| 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 |
|
{ |
| 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'; |
| 216 |
|
} |
| 217 |
|
} |
| 218 |
|
|
| 219 |
< |
fbclose(file); |
| 219 |
> |
fclose(file); |
| 220 |
|
return(0); |
| 221 |
|
} |
| 222 |
|
|