mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed compiler warnings
SVN revision: 972
This commit is contained in:
parent
33374b2363
commit
211c76d2f6
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.396 2004/07/23 07:30:26 midas
|
||||||
|
Fixed compiler warnings
|
||||||
|
|
||||||
Revision 1.395 2004/07/23 06:59:06 midas
|
Revision 1.395 2004/07/23 06:59:06 midas
|
||||||
Fixed missing argument to getcfg() under linux
|
Fixed missing argument to getcfg() under linux
|
||||||
|
|
||||||
@ -352,7 +355,9 @@ static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;
|
|||||||
#define PIDFILE "/var/run/elogd.pid"
|
#define PIDFILE "/var/run/elogd.pid"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __USE_XOPEN
|
||||||
#define __USE_XOPEN /* needed for crypt() */
|
#define __USE_XOPEN /* needed for crypt() */
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
|
|
||||||
@ -1052,7 +1057,14 @@ void base64_decode(char *s, char *d)
|
|||||||
unsigned int t;
|
unsigned int t;
|
||||||
|
|
||||||
while (*s) {
|
while (*s) {
|
||||||
t = (cind(*s++) << 18) | (cind(*s++) << 12) | (cind(*s++) << 6) | (cind(*s++) << 0);
|
t = (cind(*s) << 18;
|
||||||
|
s++;
|
||||||
|
t |= (cind(*s) << 12;
|
||||||
|
s++;
|
||||||
|
t |= (cind(*s) << 6;
|
||||||
|
s++;
|
||||||
|
t |= (cind(*s) << 0;
|
||||||
|
s++;
|
||||||
|
|
||||||
*(d + 2) = (char) (t & 0xFF);
|
*(d + 2) = (char) (t & 0xFF);
|
||||||
t >>= 8;
|
t >>= 8;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user