summaryrefslogtreecommitdiff
path: root/lib/string.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-10-26 16:07:45 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-11-02 17:53:22 +0100
commit390601f038b69d5de3841c691f92af0fcd088454 (patch)
tree2b4eaa32636dd33d1e556e177bd29b40c16dfcd0 /lib/string.h
parent64385aee0cc2dfae8297f29ce6724cedf7cc4736 (diff)
RIP: Use message authentication interface
Based on former commit from Pavel Tvrdik
Diffstat (limited to 'lib/string.h')
-rw-r--r--lib/string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/string.h b/lib/string.h
index bf0b7cb0..75cb88dd 100644
--- a/lib/string.h
+++ b/lib/string.h
@@ -39,6 +39,16 @@ xstrdup(const char *c)
return z;
}
+static inline void
+memset32(void *D, u32 val, uint n)
+{
+ u32 *dst = D;
+ uint i;
+
+ for (i = 0; i < n; i++)
+ dst[i] = val;
+}
+
#define ROUTER_ID_64_LENGTH 23
#endif