mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed compiler warnings
SVN revision: 1227
This commit is contained in:
parent
490610c0af
commit
161a52831d
15
src/elogd.c
15
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.573 2005/03/02 00:01:23 ritt
|
||||||
|
Fixed compiler warnings
|
||||||
|
|
||||||
Revision 1.572 2005/03/01 23:48:17 ritt
|
Revision 1.572 2005/03/01 23:48:17 ritt
|
||||||
Implemented MXML for password file
|
Implemented MXML for password file
|
||||||
|
|
||||||
@ -881,6 +884,8 @@ static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;
|
|||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
|
||||||
|
#define O_TEXT 0
|
||||||
|
|
||||||
#define DIR_SEPARATOR '/'
|
#define DIR_SEPARATOR '/'
|
||||||
#define DIR_SEPARATOR_STR "/"
|
#define DIR_SEPARATOR_STR "/"
|
||||||
|
|
||||||
@ -18275,7 +18280,7 @@ BOOL convert_password_file(char *file_name)
|
|||||||
|
|
||||||
/* skip comment lines */
|
/* skip comment lines */
|
||||||
if (*p != ';' && *p != '#') {
|
if (*p != ';' && *p != '#') {
|
||||||
for (i=0 ; i<sizeof(name) && *p && *p != ':' ; i++)
|
for (i=0 ; i<(int)sizeof(name) && *p && *p != ':' ; i++)
|
||||||
name[i] = *p++;
|
name[i] = *p++;
|
||||||
name[i] = 0;
|
name[i] = 0;
|
||||||
if (*p++ != ':') {
|
if (*p++ != ':') {
|
||||||
@ -18283,7 +18288,7 @@ BOOL convert_password_file(char *file_name)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0 ; i<sizeof(password) && *p && *p != ':' ; i++)
|
for (i=0 ; i<(int)sizeof(password) && *p && *p != ':' ; i++)
|
||||||
password[i] = *p++;
|
password[i] = *p++;
|
||||||
password[i] = 0;
|
password[i] = 0;
|
||||||
if (*p++ != ':') {
|
if (*p++ != ':') {
|
||||||
@ -18291,7 +18296,7 @@ BOOL convert_password_file(char *file_name)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0 ; i<sizeof(full_name) && *p && *p != ':' ; i++)
|
for (i=0 ; i<(int)sizeof(full_name) && *p && *p != ':' ; i++)
|
||||||
full_name[i] = *p++;
|
full_name[i] = *p++;
|
||||||
full_name[i] = 0;
|
full_name[i] = 0;
|
||||||
if (*p++ != ':') {
|
if (*p++ != ':') {
|
||||||
@ -18299,7 +18304,7 @@ BOOL convert_password_file(char *file_name)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0 ; i<sizeof(email) && *p && *p != ':' ; i++)
|
for (i=0 ; i<(int)sizeof(email) && *p && *p != ':' ; i++)
|
||||||
email[i] = *p++;
|
email[i] = *p++;
|
||||||
email[i] = 0;
|
email[i] = 0;
|
||||||
if (*p++ != ':') {
|
if (*p++ != ':') {
|
||||||
@ -18307,7 +18312,7 @@ BOOL convert_password_file(char *file_name)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0 ; i<sizeof(email_notify) && *p && *p != '\n' ; i++)
|
for (i=0 ; i<(int)sizeof(email_notify) && *p && *p != '\n' ; i++)
|
||||||
email_notify[i] = *p++;
|
email_notify[i] = *p++;
|
||||||
email_notify[i] = 0;
|
email_notify[i] = 0;
|
||||||
if (*p++ != '\n') {
|
if (*p++ != '\n') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user