Fixed compiler warnings
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: filesub.c,v 1.51 2008/02/17 18:46:38 mbse Exp $
|
||||
* Purpose ...............: All the file sub functions.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2008
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -773,7 +772,7 @@ int ImportFile(char *fn, int Area, int fileid, off_t Size)
|
||||
int Addfile(char *File, int AreaNum, int fileid)
|
||||
{
|
||||
FILE *id, *pPrivate;
|
||||
int iDesc = 1, iPrivate = FALSE, GotId = FALSE, lines, i, j;
|
||||
int iDesc = 1, GotId = FALSE, lines, i, j;
|
||||
char *Filename, *temp1, *idname = NULL, *Desc[26], *lname, temp[PATH_MAX], msg[81];
|
||||
struct stat statfile;
|
||||
struct _fdbarea *fdb_area = NULL;
|
||||
@@ -980,7 +979,6 @@ int Addfile(char *File, int AreaNum, int fileid)
|
||||
if ((pPrivate = fopen(temp, "a+")) == NULL)
|
||||
WriteError("$Can't open %s", temp);
|
||||
else {
|
||||
iPrivate = TRUE;
|
||||
fprintf(pPrivate, "****************************************************");
|
||||
fprintf(pPrivate, "\nUser : %s", fdb.Uploader);
|
||||
fprintf(pPrivate, "\nFile : %s (%s)", fdb.LName, fdb.Name);
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: menu.c,v 1.38 2007/02/25 20:28:10 mbse Exp $
|
||||
* Purpose ...............: Display and handle the menus.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -89,7 +88,7 @@ void InitMenu()
|
||||
void menu()
|
||||
{
|
||||
FILE *pMenuFile;
|
||||
int iFoundKey = FALSE, Key, IsANSI;
|
||||
int Key, IsANSI;
|
||||
char temp[81], *Input, *sMenuPathFileName, buf[81];
|
||||
|
||||
Input = calloc(PATH_MAX, sizeof(char));
|
||||
@@ -236,7 +235,6 @@ void menu()
|
||||
fclose(pMenuFile);
|
||||
}
|
||||
DoMenu(le_int(menus.MenuType));
|
||||
iFoundKey = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -1,11 +1,10 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: newuser.c,v 1.39 2008/11/26 21:55:25 mbse Exp $
|
||||
* Purpose ...............: New User login under Unix, creates both
|
||||
* BBS and unix accounts.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -77,7 +76,6 @@ int newuser(void)
|
||||
{
|
||||
FILE *pUsrConfig;
|
||||
int i, x, Found, iLang, recno = 0, Count = 0, badname;
|
||||
unsigned int crc;
|
||||
char temp[PATH_MAX], *FullName, *temp1, *temp2, *Phone1, *Phone2;
|
||||
int offset;
|
||||
struct userrec us;
|
||||
@@ -171,7 +169,6 @@ int newuser(void)
|
||||
language(LIGHTRED, BLACK, 41);
|
||||
Enter(1);
|
||||
} else {
|
||||
crc = StringCRC32(tu(temp1));
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: offline.c,v 1.61 2008/02/12 19:59:45 mbse Exp $
|
||||
* Purpose ...............: Offline Reader
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2008
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -2659,8 +2658,6 @@ char *StripSpaces(char *String, int Size)
|
||||
|
||||
void OLR_DownASCII(void)
|
||||
{
|
||||
struct tm *tp;
|
||||
time_t Now;
|
||||
char Pktname[32], *Work, *Temp, *cwd = NULL, Atag[60], Kinds[12], *p;
|
||||
int Area = 0, i, rc = 0;
|
||||
FILE *fp = NULL, *tf, *mf, *af, *inf;
|
||||
@@ -2685,8 +2682,6 @@ void OLR_DownASCII(void)
|
||||
Work = calloc(PATH_MAX, sizeof(char));
|
||||
Temp = calloc(PATH_MAX, sizeof(char));
|
||||
|
||||
Now = time(NULL);
|
||||
tp = localtime(&Now);
|
||||
Syslog('+', "Preparing ASCII packet");
|
||||
|
||||
snprintf(Temp, PATH_MAX, "%s.MSG", CFG.bbsid);
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: ttyio.c,v 1.4 2006/03/20 19:13:14 mbse Exp $
|
||||
* Purpose ...............: tty I/O for mbsebbs and mbnewusr
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2004
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -61,7 +60,6 @@ char *ttystat[]= {(char *)"Ok",
|
||||
static int tty_read(char *, int, int);
|
||||
static int tty_read(char *buf, int size, int tot)
|
||||
{
|
||||
time_t now;
|
||||
int rc;
|
||||
fd_set readfds, writefds, exceptfds;
|
||||
struct timeval seltimer;
|
||||
@@ -70,8 +68,6 @@ static int tty_read(char *buf, int size, int tot)
|
||||
return 0;
|
||||
tty_status = 0;
|
||||
|
||||
now = time(NULL);
|
||||
|
||||
FD_ZERO(&readfds);
|
||||
FD_ZERO(&writefds);
|
||||
FD_ZERO(&exceptfds);
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: whoson.c,v 1.19 2007/02/25 20:28:13 mbse Exp $
|
||||
* Purpose ...............: Who's online functions
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -50,7 +49,7 @@ extern int LC_Download, LC_Upload, LC_Read, LC_Chat, LC_Olr, LC_Door;
|
||||
*/
|
||||
void WhosOn(char *OpData)
|
||||
{
|
||||
char buf[128], *Heading, *cnt, *isdoing, *location, *device;
|
||||
char buf[128], *Heading, *isdoing, *location, *device;
|
||||
char *fullname, *temp, msg[81], wstr[128];;
|
||||
int x, Start = TRUE;
|
||||
FILE *fp;
|
||||
@@ -100,7 +99,7 @@ void WhosOn(char *OpData)
|
||||
/*
|
||||
* We are only interested in copies of the mbsebbs program
|
||||
*/
|
||||
cnt = strtok(buf, ",");
|
||||
strtok(buf, ",");
|
||||
strtok(NULL, ",");
|
||||
device = xstrcpy(strtok(NULL, ","));
|
||||
fullname = xstrcpy(cldecode(strtok(NULL, ",")));
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id: zmsend.c,v 1.23 2006/03/20 19:13:14 mbse Exp $
|
||||
* Purpose ...............: Zmodem sender
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2006
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -205,14 +204,9 @@ static int sendzfile(char *rn)
|
||||
{
|
||||
int rc = 0;
|
||||
struct stat st;
|
||||
struct flock fl;
|
||||
int bufl;
|
||||
int sverr;
|
||||
|
||||
fl.l_type = F_RDLCK;
|
||||
fl.l_whence = 0;
|
||||
fl.l_start = 0L;
|
||||
fl.l_len = 0L;
|
||||
if (txbuf == NULL)
|
||||
txbuf = malloc(MAXBLOCK + 1024);
|
||||
|
||||
|
Reference in New Issue
Block a user