]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/eui64_aton.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / compat / eui64_aton.h
index 863a832e33618a7e2c4fdc70bbc3b7f4f3c9d73e..d602d1774048aaf3cf833bfb394d494e2e2777dc 100644 (file)
@@ -1,3 +1,14 @@
+/*
+ * 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
 #include <sys/eui64.h>
  */
 #ifndef _SYS_EUI64_H
 #define _SYS_EUI64_H
-#ifdef __cplusplus
+#if defined(__cplusplus)
 extern "C" {
 #endif
 
-    /**
-     * Size of the ASCII representation of an EUI-64.
-     */
+#define SQUID_EUI64_ATON 1
+
+/**
+ * Size of the ASCII representation of an EUI-64.
+ */
 #define EUI64_SIZ       24
 
-    /**
    * The number of bytes in an EUI-64.
    */
+/**
+ * The number of bytes in an EUI-64.
+ */
 #define EUI64_LEN       8
 
-    /**
    * Structure of an IEEE EUI-64.
    */
-    struct eui64 {
-        uint8_t octet[EUI64_LEN];
-    };
+/**
+ * Structure of an IEEE EUI-64.
+ */
+struct eui64 {
+    uint8_t octet[EUI64_LEN];
+};
 
-    int eui64_aton(const char *a, struct eui64 *e);
-#ifdef __cplusplus
+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 */
+