]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/eui64_aton.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / compat / eui64_aton.h
index 98caeeed1a5f13a68dcf595800e82b5d603aa9c2..d602d1774048aaf3cf833bfb394d494e2e2777dc 100644 (file)
@@ -1,6 +1,13 @@
-#ifndef SQUID_CONFIG_H
-#include "config.h"
-#endif
+/*
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
+#ifndef SQUID_COMPAT_EUI64_ATON_H
+#define SQUID_COMPAT_EUI64_ATON_H
 
 /* If we have this system file use it. Otherwise use the below definitions. */
 #if HAVE_SYS_EUI64_H
  */
 #ifndef _SYS_EUI64_H
 #define _SYS_EUI64_H
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#define SQUID_EUI64_ATON 1
 
 /**
  * Size of the ASCII representation of an EUI-64.
  * Structure of an IEEE EUI-64.
  */
 struct eui64 {
-    u_char octet[EUI64_LEN];
+    uint8_t octet[EUI64_LEN];
 };
 
-#ifdef __cplusplus
-extern "C"
-#endif
 int eui64_aton(const char *a, struct eui64 *e);
+#if defined(__cplusplus)
+}
+#endif
 
 #endif /* !_SYS_EUI64_H */
 #endif /* HAVE_SYS_EUI64_H */
+#endif /* SQUID_COMPAT_EUI64_ATON_H */
+