#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
+#include <ctype.h>
#include <string.h>
#include <sys/stat.h>
#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include "config.h"
#include "file_ops.h"
#include "sysdep_decls.h"
char filename[SIZ];
char pathname[SIZ];
struct usersupp usbuf;
- char which_user[32];
+ char which_user[USERNAME_SIZE];
int which_floor;
int a;
fseek(CC->download_fp, start_pos, 0);
actual_bytes = fread(buf, 1, bytes, CC->download_fp);
- cprintf("%d %d\n", BINARY_FOLLOWS, actual_bytes);
+ cprintf("%d %d\n", BINARY_FOLLOWS, (int)actual_bytes);
client_write(buf, actual_bytes);
}