mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed compiler warnings
SVN revision: 983
This commit is contained in:
parent
daad95827a
commit
6333185abd
14
src/elogd.c
14
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.406 2004/07/27 20:48:49 midas
|
||||||
|
Fixed compiler warnings
|
||||||
|
|
||||||
Revision 1.405 2004/07/27 20:37:08 midas
|
Revision 1.405 2004/07/27 20:37:08 midas
|
||||||
Implemented read_password
|
Implemented read_password
|
||||||
|
|
||||||
@ -405,6 +408,7 @@ typedef int BOOL;
|
|||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
#include <termios.h>
|
||||||
|
|
||||||
#define closesocket(s) close(s)
|
#define closesocket(s) close(s)
|
||||||
#ifndef O_BINARY
|
#ifndef O_BINARY
|
||||||
@ -11563,11 +11567,12 @@ void synchronize_logbook(LOGBOOK * lbs, int mode)
|
|||||||
rsprintf("</table><p>\n");
|
rsprintf("</table><p>\n");
|
||||||
|
|
||||||
rsprintf("<pre>");
|
rsprintf("<pre>");
|
||||||
} else if (mode == SYNC_CLONE)
|
} else if (mode == SYNC_CLONE) {
|
||||||
if (list[index][strlen(list[index]) - 1] != '/')
|
if (list[index][strlen(list[index]) - 1] != '/')
|
||||||
eprintf("\nRetrieving entries from \"%s/%s\"...\n", list[index], lbs->name);
|
eprintf("\nRetrieving entries from \"%s/%s\"...\n", list[index], lbs->name);
|
||||||
else
|
else
|
||||||
eprintf("\nRetrieving entries from \"%s%s\"...\n", list[index], lbs->name);
|
eprintf("\nRetrieving entries from \"%s%s\"...\n", list[index], lbs->name);
|
||||||
|
}
|
||||||
|
|
||||||
/* send partial return buffer */
|
/* send partial return buffer */
|
||||||
flush_return_buffer();
|
flush_return_buffer();
|
||||||
@ -11813,7 +11818,7 @@ void synchronize_logbook(LOGBOOK * lbs, int mode)
|
|||||||
} else if (mode == SYNC_CLONE) {
|
} else if (mode == SYNC_CLONE) {
|
||||||
eprintf("%s\n", loc("Remote entry received"));
|
eprintf("%s\n", loc("Remote entry received"));
|
||||||
} else {
|
} else {
|
||||||
sprintf(str, "ID%s:\t%s", message_id, loc("Remote entry received"));
|
sprintf(str, "ID%d:\t%s", message_id, loc("Remote entry received"));
|
||||||
mprint(lbs, mode, str);
|
mprint(lbs, mode, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -19832,9 +19837,6 @@ int ss_getchar(BOOL reset)
|
|||||||
int i, fd;
|
int i, fd;
|
||||||
char c[3];
|
char c[3];
|
||||||
|
|
||||||
if (_daemon_flag)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
fd = fileno(stdin);
|
fd = fileno(stdin);
|
||||||
|
|
||||||
if (reset) {
|
if (reset) {
|
||||||
@ -19870,7 +19872,7 @@ int ss_getchar(BOOL reset)
|
|||||||
|
|
||||||
/* BS/DEL -> BS */
|
/* BS/DEL -> BS */
|
||||||
if (c[0] == 127)
|
if (c[0] == 127)
|
||||||
return CH_BS;
|
return 8;
|
||||||
|
|
||||||
return c[0];
|
return c[0];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user