Browse Source

Minor cosmetic changes

Serj Kalichev 12 years ago
parent
commit
28bdfb7c6a
5 changed files with 7 additions and 4 deletions
  1. 1 1
      bin/clish.c
  2. 0 1
      bin/konf.c
  3. 2 0
      clish/shell/shell_libxml2.c
  4. 2 0
      clish/shell/shell_roxml.c
  5. 2 2
      clish/shell/xmlapi.h

+ 1 - 1
bin/clish.c

@@ -1,6 +1,6 @@
 /*
  * --------------------------------------
- * clish.cpp
+ * clish.c
  *
  * A console client for libclish
  * --------------------------------------

+ 0 - 1
bin/konf.c

@@ -1,7 +1,6 @@
 /*
  * konf.c
  *
- *
  * The client to communicate to konfd configuration daemon.
  */
 

+ 2 - 0
clish/shell/shell_libxml2.c

@@ -8,7 +8,9 @@
  * ------------------------------------------------------
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #if defined(HAVE_LIB_LIBXML2)
 #include <errno.h>

+ 2 - 0
clish/shell/shell_roxml.c

@@ -8,7 +8,9 @@
  * ------------------------------------------------------
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #if defined(HAVE_LIB_ROXML)
 #include <errno.h>

+ 2 - 2
clish/shell/xmlapi.h

@@ -1,6 +1,6 @@
 /*
  * xmlapi.h
- * 
+ *
  * private klish file: internal XML API
  */
 
@@ -9,6 +9,7 @@
 
 #include <stdlib.h>
 #include <errno.h>
+#include <stdio.h> /* need for FILE */
 
 /* 
  * XML document (opaque type) 
@@ -209,7 +210,6 @@ void clish_xmlattr_get_value_noerr(
 	char *value, 
 	unsigned int valuelen);
 
-#include <stdio.h> /* need for FILE */
 /*
  * print an XML node to the out file
  */