Author: noodles
Date: 2004/05/27 22:02:05
Fix various preprocessor warnings.
-# $Id: Makefile,v 1.20 2004/05/27 03:33:24 noodles Exp $
+# $Id: Makefile,v 1.21 2004/05/27 22:02:05 noodles Exp $
# Uncomment to enable profiling.
#LDFLAGS += -pg
# Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
# Uncomment to enable profiling.
#LDFLAGS += -pg
# Can be "pg" for Postgresql, "file" for flat files or "db2" for pksd db2 style.
# If using DBTYPE of "file" then comment the following line out.
#LIBS = -L/usr/local/lib -lpq
LIBS = -L/usr/local/lib -ldb3
# If using DBTYPE of "file" then comment the following line out.
#LIBS = -L/usr/local/lib -lpq
LIBS = -L/usr/local/lib -ldb3
OBJS = merge.o stats.o sendsync.o $(CORE_OBJS)
SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
OBJS = merge.o stats.o sendsync.o $(CORE_OBJS)
SRCS = armor.c parsekey.c merge.c keyid.c md5.c sha.c main.c getcgi.c stats.c \
keyindex.c mem.c lookup.c add.c keydb_$(DBTYPE).c ll.c hash.c \
- gpgwww.c onak-conf.c charfuncs.c sendsync.c log.c photoid.c wordlist.o
+ gpgwww.c onak-conf.c charfuncs.c sendsync.c log.c photoid.c wordlist.c
all: .depend $(PROGS) testparse maxpath sixdegrees splitkeys
all: .depend $(PROGS) testparse maxpath sixdegrees splitkeys
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: md5.c,v 1.3 2003/10/04 10:21:41 noodles Exp $
+ * $Id: md5.c,v 1.4 2004/05/27 22:02:05 noodles Exp $
*/
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
/* heavily modified for GnuPG by <werner.koch@guug.de> */
*/
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
/* heavily modified for GnuPG by <werner.koch@guug.de> */
/*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
/* Unixware's cpp doesn't like the above construct so we do it his way:
* (reported by Allan Clark) */
/*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
/* Unixware's cpp doesn't like the above construct so we do it his way:
* (reported by Allan Clark) */
- #define X(a) do { *(unsigned int *)p = (*hd).a ; p += 4; } while(0)
+#define X(a) do { *(unsigned int *)p = (*hd).a ; p += 4; } while(0)
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: sha.c,v 1.2 2003/06/04 20:57:12 noodles Exp $
+ * $Id: sha.c,v 1.3 2004/05/27 22:02:06 noodles Exp $
*/
/* This file was copied from GnuPG */
*/
/* This file was copied from GnuPG */
{ int i;
uint8_t *p2;
for(i=0, p2=(unsigned char*)x; i < 16; i++, p2 += 4 ) {
{ int i;
uint8_t *p2;
for(i=0, p2=(unsigned char*)x; i < 16; i++, p2 += 4 ) {
transform( hd, hd->buf );
p = hd->buf;
transform( hd, hd->buf );
p = hd->buf;
- #ifdef BIG_ENDIAN_HOST
- #define X(a) do { *(uint32_t *)p = hd->h##a ; p += 4; } while(0)
- #else /* little endian */
- #define X(a) do { *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16; \
+#ifdef BIG_ENDIAN_HOST
+#define X(a) do { *(uint32_t *)p = hd->h##a ; p += 4; } while(0)
+#else /* little endian */
+#define X(a) do { *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16; \
*p++ = hd->h##a >> 8; *p++ = hd->h##a; } while(0)
*p++ = hd->h##a >> 8; *p++ = hd->h##a; } while(0)
X(0);
X(1);
X(2);
X(3);
X(4);
X(0);
X(1);
X(2);
X(3);
X(4);