Convert bitfields to integers in a safe way.
[oweals/tinc.git] / lib / utils.h
index 04c4ddbd3aeb6c8f94087594a99baf9ba7240fc1..ce7264829c7d8fd5e50114537ef09e1f96719229 100644 (file)
@@ -43,4 +43,6 @@ extern const char *winerror(int);
 #define strerror(x) ((x)>0?strerror(x):winerror(GetLastError()))
 #endif
 
+extern unsigned int bitfield_to_int(void *bitfield, size_t size);
+
 #endif                                                 /* __TINC_UTILS_H__ */