Commit 2ca7b2dd authored by rswindell's avatar rswindell
Browse files

Fix GCC build error introduced in last commit (and a couple warnings).

parent 907788bd
......@@ -100,13 +100,6 @@ const char* sbbsecho_pid(void)
return str;
}
void delfile(const char *filename, int line)
{
if(remove(filename) != 0)
lprintf(LOG_ERR, "ERROR %u (%s) line %u removing file %s"
,errno, strerror(errno), line, filename);
}
#if defined(__unix__) /* borrowed from MSVC */
unsigned _rotr (
unsigned val,
......@@ -177,6 +170,13 @@ void logprintf(char *str, ...)
,buf);
}
void delfile(const char *filename, int line)
{
if(remove(filename) != 0)
lprintf(LOG_ERR, "ERROR %u (%s) line %u removing file %s"
,errno, strerror(errno), line, filename);
}
/*****************************************************************************/
/* Returns command line generated from instr with %c replacments */
/*****************************************************************************/
......@@ -336,7 +336,6 @@ faddr_t getsysfaddr(short zone)
int get_flo_outbound(faddr_t dest, char* outbound, size_t maxlen)
{
char* last;
if(dest.zone==sys_faddr.zone) /* Default zone, use default outbound */
strncpy(outbound,cfg.outbound,maxlen);
else { /* Inter-zone outbound is OUTBOUND.XXX */
......@@ -362,7 +361,6 @@ int write_flofile(char *attachment, faddr_t dest, BOOL bundle)
{
char fname[MAX_PATH+1];
char outbound[MAX_PATH+1];
char str[MAX_PATH+1];
char ch;
char searchstr[MAX_PATH+1];
ushort attr=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment