/*
- * $Id$
- *
* Server functions which handle file transfers and room directories.
- *
*/
#include "sysdep.h"
/*
* network_talking_to() -- concurrency checker
*/
+static char *nttlist = NULL;
int network_talking_to(char *nodename, int operation) {
- static char *nttlist = NULL;
char *ptr = NULL;
int i;
char buf[SIZ];
return(retval);
}
+void cleanup_nttlist(void)
+{
+ begin_critical_section(S_NTTLIST);
+ if (nttlist != NULL)
+ free(nttlist);
+ nttlist = NULL;
+ end_critical_section(S_NTTLIST);
+}
CC->upload_fp = NULL;
if ((!strcasecmp(cmd, "1")) && (CC->upload_type != UPL_FILE)) {
- CC->upload_type = UPL_FILE;
cprintf("%d Upload completed.\n", CIT_OK);
if (CC->upload_type == UPL_NET) {
/* FIXME ... here we need to trigger a network run */
}
+ CC->upload_type = UPL_FILE;
return;
}
CtdlRegisterProtoHook(cmd_nuop, "NUOP", "Open a network spool file for upload");
CtdlRegisterProtoHook(cmd_oimg, "OIMG", "Open an image file for download");
CtdlRegisterProtoHook(cmd_uimg, "UIMG", "Upload an image file");
+ CtdlRegisterCleanupHook(cleanup_nttlist);
}
/* return our Subversion id for the Log */
- return "$Id$";
+ return "file_ops";
}