Fixed compiler warnings
This commit is contained in:
parent
880d04142b
commit
4ec2e689dd
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Alias Database
|
* Purpose ...............: Alias Database
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2005
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -126,7 +126,7 @@ int registrate(char *freename, char *address)
|
|||||||
}
|
}
|
||||||
|
|
||||||
*q = '\0';
|
*q = '\0';
|
||||||
Syslog('m', "Registrate \"%s\" \"%s\"", MBSE_SS(buf), MBSE_SS(address));
|
Syslog('m', "Registrate \"%s\" \"%s\"", buf, MBSE_SS(address));
|
||||||
|
|
||||||
while (fread(&key, sizeof(key), 1, afp)) {
|
while (fread(&key, sizeof(key), 1, afp)) {
|
||||||
if (!strcmp(key.freename, buf)) {
|
if (!strcmp(key.freename, buf)) {
|
||||||
@ -146,9 +146,9 @@ int registrate(char *freename, char *address)
|
|||||||
key.dtime = time(NULL);
|
key.dtime = time(NULL);
|
||||||
|
|
||||||
if (fwrite(&key, sizeof(key), 1, afp) != 1) {
|
if (fwrite(&key, sizeof(key), 1, afp) != 1) {
|
||||||
WriteError("$Cannot store: \"%s\" \"%s\"", MBSE_SS(buf), MBSE_SS(address));
|
WriteError("$Cannot store: \"%s\" \"%s\"", buf, MBSE_SS(address));
|
||||||
} else {
|
} else {
|
||||||
Syslog('m', "Registered \"%s\" as \"%s\"", MBSE_SS(buf), MBSE_SS(address));
|
Syslog('m', "Registered \"%s\" as \"%s\"", buf, MBSE_SS(address));
|
||||||
}
|
}
|
||||||
close_alias_db();
|
close_alias_db();
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Original ideas ........: Eugene G. Crosser.
|
* Original ideas ........: Eugene G. Crosser.
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2007
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -279,7 +279,7 @@ int main(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
cmd = xstrcpy(archiver.munarc);
|
cmd = xstrcpy(archiver.munarc);
|
||||||
|
|
||||||
if ((cmd == NULL) || (cmd == "")) {
|
if ((cmd == NULL) || (strlen(cmd) == 0)) {
|
||||||
show_log = TRUE;
|
show_log = TRUE;
|
||||||
free(cmd);
|
free(cmd);
|
||||||
free(onl);
|
free(onl);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose: File Database Maintenance - utilities
|
* Purpose: File Database Maintenance - utilities
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2007
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -237,7 +237,7 @@ int UnpackFile(char *File)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmd = xstrcpy(archiver.funarc);
|
cmd = xstrcpy(archiver.funarc);
|
||||||
if ((cmd == NULL) || (cmd == "")) {
|
if ((cmd == NULL) || (strlen(cmd) == 0)) {
|
||||||
WriteError("No unarc command available");
|
WriteError("No unarc command available");
|
||||||
if (!do_quiet)
|
if (!do_quiet)
|
||||||
printf("\nNo unarc command available\n");
|
printf("\nNo unarc command available\n");
|
||||||
|
@ -286,8 +286,8 @@ int toss_onemsg(char *msgname)
|
|||||||
Msg.Written = parsefdate(DateTime, NULL);
|
Msg.Written = parsefdate(DateTime, NULL);
|
||||||
Msg.Arrived = time(NULL) - (gmt_offset((time_t)0) * 60);
|
Msg.Arrived = time(NULL) - (gmt_offset((time_t)0) * 60);
|
||||||
|
|
||||||
Msg.KillSent = ((Attribute & M_KILLSENT));
|
Msg.KillSent = ((Attribute & M_KILLSENT)) ? 1:0;
|
||||||
Msg.Hold = ((Attribute & M_HOLD));
|
Msg.Hold = ((Attribute & M_HOLD)) ? 1:0;
|
||||||
Msg.Crash = ((Attribute & M_CRASH) || flag_on((char *)"CRA", flagstr));
|
Msg.Crash = ((Attribute & M_CRASH) || flag_on((char *)"CRA", flagstr));
|
||||||
Msg.ReceiptRequest = ((Attribute & M_RRQ) || flag_on((char *)"RRQ", flagstr));
|
Msg.ReceiptRequest = ((Attribute & M_RRQ) || flag_on((char *)"RRQ", flagstr));
|
||||||
Msg.Orphan = ((Attribute & M_ORPHAN));
|
Msg.Orphan = ((Attribute & M_ORPHAN));
|
||||||
|
@ -400,11 +400,10 @@ int ProcessTic(fa_list **sbl, orphans **opl)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd = xstrcpy(archiver.funarc);
|
if (strlen(archiver.funarc) == 0) {
|
||||||
|
|
||||||
if ((cmd == NULL) || (cmd == "")) {
|
|
||||||
Syslog('!', "No unarc command available");
|
Syslog('!', "No unarc command available");
|
||||||
} else {
|
} else {
|
||||||
|
cmd = xstrcpy(archiver.funarc);
|
||||||
snprintf(temp1, PATH_MAX, "%s/%s", TIC.Inbound, TIC.TicIn.File);
|
snprintf(temp1, PATH_MAX, "%s/%s", TIC.Inbound, TIC.TicIn.File);
|
||||||
if (execute_str(cmd, temp1, (char *)NULL, (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null") == 0) {
|
if (execute_str(cmd, temp1, (char *)NULL, (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null") == 0) {
|
||||||
UnPacked = TRUE;
|
UnPacked = TRUE;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Unpacker
|
* Purpose ...............: Unpacker
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2007
|
* Copyright (C) 1997-2008
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -86,11 +86,11 @@ int unpack(char *fn)
|
|||||||
if (!getarchiver(unarc))
|
if (!getarchiver(unarc))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
cmd = xstrcpy(archiver.munarc);
|
if (strlen(archiver.munarc) == 0)
|
||||||
|
|
||||||
if ((cmd == NULL) || (cmd == ""))
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
cmd = xstrcpy(archiver.munarc);
|
||||||
|
|
||||||
if ((ld = f_lock(fn)) == -1) {
|
if ((ld = f_lock(fn)) == -1) {
|
||||||
free(cmd);
|
free(cmd);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user