[PATCH 2/3] libtraceevent: Have the header protection be more name space safe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>

The header protection for event-utils.h is just _UTIL_H which is not very
name space safe and if another header were to use that, it could cause
this header not to be included (or this header could cause the other
header not to be included). Also update event-parse.h as well.

Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
---
 src/event-parse.h | 4 ++--
 src/event-utils.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/event-parse.h b/src/event-parse.h
index 77be2b9..d4a876f 100644
--- a/src/event-parse.h
+++ b/src/event-parse.h
@@ -3,8 +3,8 @@
  * Copyright (C) 2009, 2010 Red Hat Inc, Steven Rostedt <srostedt@xxxxxxxxxx>
  *
  */
-#ifndef _PARSE_EVENTS_H
-#define _PARSE_EVENTS_H
+#ifndef __TEP_PARSE_EVENTS_H
+#define __TEP_PARSE_EVENTS_H
 
 #include <stdbool.h>
 #include <stdarg.h>
diff --git a/src/event-utils.h b/src/event-utils.h
index da95027..607be0c 100644
--- a/src/event-utils.h
+++ b/src/event-utils.h
@@ -3,8 +3,8 @@
  * Copyright (C) 2010 Red Hat Inc, Steven Rostedt <srostedt@xxxxxxxxxx>
  *
  */
-#ifndef __UTIL_H
-#define __UTIL_H
+#ifndef __TEP_EVENT_UTIL_H
+#define __TEP_EVENT_UTIL_H
 
 #include <ctype.h>
 #include <stdarg.h>
-- 
2.29.2




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux