projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6517d
)
shared: include <stdlib.h> in "nm-macros-internal.h"
author
Thomas Haller
<thaller@redhat.com>
Wed, 23 Mar 2016 16:55:27 +0000
(17:55 +0100)
committer
Thomas Haller
<thaller@redhat.com>
Thu, 24 Mar 2016 09:10:53 +0000
(10:10 +0100)
"nm-macros-internal.h" uses free() for the "nm_auto_free"
macro. Thus, as long as that code is there, we anyway must
include <stdlib.h> along the line.
Do it in "nm-macros-internal.h" to make the header self-contained.
shared/nm-macros-internal.h
patch
|
blob
|
history
diff --git
a/shared/nm-macros-internal.h
b/shared/nm-macros-internal.h
index
e875392
..
152cbf6
100644
(file)
--- a/
shared/nm-macros-internal.h
+++ b/
shared/nm-macros-internal.h
@@
-22,6
+22,8
@@
#ifndef __NM_MACROS_INTERNAL_H__
#define __NM_MACROS_INTERNAL_H__
+#include <stdlib.h>
+
/********************************************************/
#define nm_auto(fcn) __attribute ((cleanup(fcn)))