From 211c76d2f6cadf34660aea54eabea256d9e222d4 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 23 Jul 2004 07:30:26 +0000 Subject: [PATCH] Fixed compiler warnings SVN revision: 972 --- src/elogd.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index c187d2d8..7eda2064 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.396 2004/07/23 07:30:26 midas + Fixed compiler warnings + Revision 1.395 2004/07/23 06:59:06 midas 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" #endif +#ifndef __USE_XOPEN #define __USE_XOPEN /* needed for crypt() */ +#endif typedef int BOOL; @@ -1052,7 +1057,14 @@ void base64_decode(char *s, char *d) unsigned int t; 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); t >>= 8;