[CRIU] [PATCH 6/8] headers: Beautify sigframe.h

Cyrill Gorcunov gorcunov at openvz.org
Mon Jun 17 12:47:46 EDT 2013


- include "protobuf/core.pb-c.h" for CoreEntry definition
- gather structure predeclaration on top
- move general comment on top as well
- add extern for construct_sigframe helper

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/sigframe.h | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/include/sigframe.h b/include/sigframe.h
index 858edce..afc2c9d 100644
--- a/include/sigframe.h
+++ b/include/sigframe.h
@@ -1,7 +1,11 @@
+/*
+ * Generic sigframe bits.
+ */
+
 #ifndef __CR_SIGFRAME_H__
 #define __CR_SIGFRAME_H__
 
-// Generic sigframe bits
+struct rt_sigframe;
 
 #ifndef __ARCH_SI_PREAMBLE_SIZE
 #define __ARCH_SI_PREAMBLE_SIZE	(3 * sizeof(int))
@@ -35,8 +39,8 @@ struct rt_ucontext {
 	unsigned long           uc_regspace[128] __attribute__((__aligned__(8)));
 };
 
-struct rt_sigframe;
-int construct_sigframe(struct rt_sigframe *sigframe,
-				     struct rt_sigframe *rsigframe,
-				     CoreEntry *core);
-#endif
+extern int construct_sigframe(struct rt_sigframe *sigframe,
+			      struct rt_sigframe *rsigframe,
+			      CoreEntry *core);
+
+#endif /* __CR_SIGFRAME_H__ */
-- 
1.8.1.4



More information about the CRIU mailing list