]> git.meshlink.io Git - meshlink/blobdiff - src/logger.h
Avoid allocating packet buffers unnecessarily.
[meshlink] / src / logger.h
index 05773d6c63b6271cdc2b3c2d92a9a0fc0f917c4a..d6a28c59efe2f452c7d75ae28229bc6b80d7088c 100644 (file)
@@ -1,6 +1,9 @@
+#ifndef MESHLINK_LOGGER_H
+#define MESHLINK_LOGGER_H
+
 /*
     logger.h -- header file for logger.c
-    Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
+    Copyright (C) 2014, 2017 Guus Sliepen <guus@meshlink.io>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef __MESHLINK_LOGGER_H__
-#define __MESHLINK_LOGGER_H__
-
 #include "meshlink_internal.h"
 
 extern void logger(meshlink_handle_t *mesh, meshlink_log_level_t level, const char *format, ...) __attribute__((__format__(printf, 3, 4)));
 
-#endif /* __MESHLINK_LOGGER_H__ */
+#endif