diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-02-23 14:10:03 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-02-23 14:10:03 -0800 |
commit | 8938f8cf2ba00f7d7c95b96dcb02660b28c9fc74 (patch) | |
tree | 2bca0bde51b184d84b55f115d4cbf8b846223f97 /src/common | |
parent | 95b4b15c8b0d47a7323cd74858714023c7a22a22 (diff) | |
download | vyatta-cfg-8938f8cf2ba00f7d7c95b96dcb02660b28c9fc74.tar.gz vyatta-cfg-8938f8cf2ba00f7d7c95b96dcb02660b28c9fc74.zip |
remove compiler warnings
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/common.h | 7 | ||||
-rw-r--r-- | src/common/unionfs.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/common/common.h b/src/common/common.h index 8b46498..1a323ee 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -4,6 +4,9 @@ #include "defs.h" #include "unionfs.h" +#ifdef __cplusplus +extern "C" { +#endif boolean execute(char *cmd); @@ -50,4 +53,8 @@ common_commit_copy_to_live_config(GNode *root_node, boolean suppress_piecewise_c void common_commit_clean_temp_config(GNode *root_node, boolean test_mode); +#ifdef __cplusplus +} +#endif + #endif //__COMMON_H__ diff --git a/src/common/unionfs.h b/src/common/unionfs.h index 0682b69..747262a 100644 --- a/src/common/unionfs.h +++ b/src/common/unionfs.h @@ -7,6 +7,10 @@ #include "../cli_val.h" #include "../cli_objects.h" +#ifdef __cplusplus +extern "C" { +#endif + #define UNSAVED_FILE ".unsaved" #define DISABLE_FILE ".disable" #define DEF_FILE "def" @@ -32,5 +36,8 @@ struct ValueData NODE_OPERATION _state; }; +#ifdef __cplusplus +} +#endif #endif //__UNIONFS_HH__ |