]> de.git.xonotic.org Git - xonotic/d0_blind_id.git/commitdiff
include guards
authorRudolf Polzer <divverent@alientrap.org>
Sat, 24 Apr 2010 19:13:16 +0000 (21:13 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 24 Apr 2010 19:13:16 +0000 (21:13 +0200)
d0_bignum.h
d0_blind_id.h
d0_iobuf.h
sha1.h

index 7eb0e0ab523ba27a5bb6a9356d580e35748bd961..5f78c4967388f6f0fe786961795cf86908fe9b2d 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef __D0_BIGNUM_H__
+#define __D0_BIGNUM_H__
+
 #include "d0.h"
 #include "d0_iobuf.h"
 
@@ -36,3 +39,5 @@ WARN_UNUSED_RESULT int d0_bignum_isprime(d0_bignum_t *r, int param);
 WARN_UNUSED_RESULT d0_bignum_t *d0_bignum_gcd(d0_bignum_t *r, d0_bignum_t *s, d0_bignum_t *t, const d0_bignum_t *a, const d0_bignum_t *b);
 
 WARN_UNUSED_RESULT char *d0_bignum_tostring(const d0_bignum_t *x, unsigned int base); // allocates!
+
+#endif
index 849285f989ba01b684ff4b39619ea0aeedbb73e3..ed5bcdaa44e121d6d8b4eeec3bd0a7b918fcc4f4 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef __D0_BLIND_ID_H__
+#define __D0_BLIND_ID_H__
+
 #include "d0.h"
 
 typedef struct d0_blind_id_s d0_blind_id_t;
@@ -27,3 +30,5 @@ WARN_UNUSED_RESULT BOOL d0_blind_id_fingerprint64_public_id(d0_blind_id_t *ctx,
 
 void d0_blind_id_INITIALIZE();
 void d0_blind_id_SHUTDOWN();
+
+#endif
index 396215d163baef1ebda4fbdcb238c5fa37c79df9..6b86c9604e497cfac56ea29ecc0f3c6f166312ca 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef __D0_IOBUF_H__
+#define __D0_IOBUF_H__
+
 #include "d0.h"
 
 typedef struct d0_iobuf_s d0_iobuf_t;
@@ -11,3 +14,5 @@ WARN_UNUSED_RESULT size_t d0_iobuf_write_raw(d0_iobuf_t *buf, const void *s, siz
 WARN_UNUSED_RESULT size_t d0_iobuf_read_raw(d0_iobuf_t *buf, void *s, size_t n);
 WARN_UNUSED_RESULT BOOL d0_iobuf_write_packet(d0_iobuf_t *buf, const void *s, size_t n);
 WARN_UNUSED_RESULT BOOL d0_iobuf_read_packet(d0_iobuf_t *buf, void *s, size_t *n);
+
+#endif
diff --git a/sha1.h b/sha1.h
index 79dd900cd1cb0d737dc1f721d5dfa180f3ad4a97..bbff14814208295549508f519417389575ab5c85 100644 (file)
--- a/sha1.h
+++ b/sha1.h
@@ -1,3 +1,6 @@
+#ifndef __SHA1_H__
+#define __SHA1_H__
+
 #define SHA_DATASIZE    64
 #define SHA_DATALEN     16
 #define SHA_DIGESTSIZE  20
@@ -27,3 +30,5 @@ void sha_copy(struct sha_ctx *dest, struct sha_ctx *src);
                         | EXTRACT_UCHAR(s+3))
 
 unsigned char *sha(unsigned char *buffer, unsigned int len);
+
+#endif