diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-10-02 16:07:49 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-10-02 16:07:49 -0700 |
commit | d0d04a751c928232731cbd3fa2a3e68a073d911b (patch) | |
tree | a722e692ae5ce2a9d25b7c3685a5cf6c398952f1 | |
parent | b3bd6b67b498eddde6e04ce67d8000fbd85ae6ed (diff) | |
download | vyatta-cfg-d0d04a751c928232731cbd3fa2a3e68a073d911b.tar.gz vyatta-cfg-d0d04a751c928232731cbd3fa2a3e68a073d911b.zip |
add missing prototypes
-rw-r--r-- | src/commit2.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/commit2.c b/src/commit2.c index 6274ec6..67e3889 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -28,8 +28,7 @@ const int ActionOrder[g_num_actions] = { }; - -const char* ActionNames[top_act] = { +static const char* ActionNames[top_act] = { "delete", //0 "create", //1 "activate", //2 @@ -75,6 +74,14 @@ enclosing_process_func(GNode *node, gpointer data); static gboolean validate_func(GNode *node, gpointer data); + +static boolean +validate_configuration(GNode *root_node, boolean mode, + GSList **nodes_visited_coll); + +static void +update_change_file(FILE *fp, GSList *coll); + /* NOTES: reverse: use the n-nary tree in commit2.c and only encapuslate data store. pass in func pointer for processing of commands below. @@ -937,8 +944,9 @@ enclosing_process_func(GNode *node, gpointer data) /** * **/ -boolean -validate_configuration(GNode *root_node, boolean mode, GSList **nodes_visited_coll) +static boolean +validate_configuration(GNode *root_node, boolean mode, + GSList **nodes_visited_coll) { if (root_node == NULL) { return FALSE; @@ -1107,7 +1115,7 @@ validate_func(GNode *node, gpointer data) * * **/ -void +static void update_change_file(FILE *fp, GSList *coll) { if (coll == NULL || fp == NULL) { |