fixed compilation with gcc-2.95

master
Evgeniy Kozhuhovskiy 20 years ago
parent 90fce183fb
commit af23f2e9c5

@ -1,3 +1,7 @@
2005-03-26 ugenk <e.kozhuhovskiy@generation-p.com>
* bforce/nodelist.c (nodelist_open): fixed compilation with gcc-2.95
2005-03-22 Evgeniy Kozhuhovskiy <e.kozhuhovskiy@gmail.com>
* INSTALL.ru: added some information

@ -252,8 +252,8 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
const char *openmode;
int lockmode;
char *ext; /* extension */
memset(&tmp, '\0', sizeof(s_nodelist));
char *lastname;
memset(&tmp, '\0', sizeof(s_nodelist));
/*
* Select nodelist index open mode
*/
@ -298,6 +298,8 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
char tmpseek[MAX_NAME];
char tmpseekdir[MAX_NAME];
char tmpname[MAX_NAME];
struct stat ndfile;
time_t lasttime = 0;
struct dirent *ndir;
DIR *ndirstream;
if( (ndirstream = opendir(dir)) == NULL )
@ -308,8 +310,8 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
{
strnxcpy(tmpname, name, sizeof(tmpname));
struct stat ndfile;
time_t lasttime = 0;
while( (ndir = readdir(ndirstream)) )
{
strnxcpy(tmpseek, ndir->d_name, sizeof(tmpseek));

Loading…
Cancel
Save