Fixed compiler warnings
This commit is contained in:
parent
6224246418
commit
880d04142b
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Fidonet mailer
|
* Purpose ...............: Fidonet mailer
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2005
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -55,7 +55,7 @@ FILE *bopenfile(char *fname, time_t remtime, off_t remsize, off_t *resofs)
|
|||||||
|
|
||||||
strcpy(ctt,date(remtime));
|
strcpy(ctt,date(remtime));
|
||||||
|
|
||||||
Syslog('b', "Binkp: bopenfile(\"%s\",%s,%u)", MBSE_SS(fname), MBSE_SS(ctt), (unsigned int)remsize);
|
Syslog('b', "Binkp: bopenfile(\"%s\",%s,%u)", MBSE_SS(fname), ctt, (unsigned int)remsize);
|
||||||
|
|
||||||
if ((fname == NULL) || (fname[0] == '\0')) {
|
if ((fname == NULL) || (fname[0] == '\0')) {
|
||||||
Syslog('+', "Binkp: bopenfile fname=NULL");
|
Syslog('+', "Binkp: bopenfile fname=NULL");
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: fidonet mailer
|
* Purpose ...............: fidonet mailer
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2005
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -80,7 +80,7 @@ char *xtodos(char *orig)
|
|||||||
name_mangle(p);
|
name_mangle(p);
|
||||||
memset(&buf, 0, sizeof(buf));
|
memset(&buf, 0, sizeof(buf));
|
||||||
strncpy(buf, p, 12);
|
strncpy(buf, p, 12);
|
||||||
Syslog('o', "name \"%s\" converted to \"%s\"", MBSE_SS(orig), MBSE_SS(buf));
|
Syslog('o', "name \"%s\" converted to \"%s\"", MBSE_SS(orig), buf);
|
||||||
free(copy);
|
free(copy);
|
||||||
return xstrcpy(buf);
|
return xstrcpy(buf);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Fidonet mailer
|
* Purpose ...............: Fidonet mailer
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2005
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -61,7 +61,7 @@ FILE *openfile(char *fname, time_t remtime, off_t remsize, off_t *resofs, int(*r
|
|||||||
|
|
||||||
strcpy(ctt,date(remtime));
|
strcpy(ctt,date(remtime));
|
||||||
|
|
||||||
Syslog('s', "openfile(\"%s\",%s,%lu,...)", MBSE_SS(fname), MBSE_SS(ctt), (unsigned int)remsize);
|
Syslog('s', "openfile(\"%s\",%s,%lu,...)", MBSE_SS(fname), ctt, (unsigned int)remsize);
|
||||||
|
|
||||||
if ((fname == NULL) || (fname[0] == '\0')) {
|
if ((fname == NULL) || (fname[0] == '\0')) {
|
||||||
snprintf(tmpfname,16,"%08x.pkt",sequencer());
|
snprintf(tmpfname,16,"%08x.pkt",sequencer());
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Fidonet mailer - respond to filerequests
|
* Purpose ...............: Fidonet mailer - respond to filerequests
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2007
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -530,7 +530,7 @@ file_list *respmagic(char *cmd) /* must free(cmd) before exit */
|
|||||||
add_report((char *)"OK: magic output is send by mail");
|
add_report((char *)"OK: magic output is send by mail");
|
||||||
unlink(tmpfn);
|
unlink(tmpfn);
|
||||||
} else {
|
} else {
|
||||||
WriteError("$cannot open temp file \"%s\"",MBSE_SS(tmpfn));
|
WriteError("$cannot open temp file \"%s\"",tmpfn);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WriteError("$cannot stat() magic stdout \"%s\"",tmpfn);
|
WriteError("$cannot stat() magic stdout \"%s\"",tmpfn);
|
||||||
|
Reference in New Issue
Block a user