Browse Source

Stylistic fixes

git-svn-id: https://klish.googlecode.com/svn/trunk@388 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
5847726ea9
4 changed files with 3 additions and 10 deletions
  1. 1 2
      konf/buf/buf.c
  2. 0 5
      konf/net/net.c
  3. 1 1
      konf/tree.h
  4. 1 2
      konf/tree/tree.c

+ 1 - 2
konf/buf/buf.c

@@ -79,9 +79,8 @@ konf_buf_t *konf_buf_new(int fd)
 {
 	konf_buf_t *this = malloc(sizeof(konf_buf_t));
 
-	if (this) {
+	if (this)
 		konf_buf_init(this, fd);
-	}
 
 	return this;
 }

+ 0 - 5
konf/net/net.c

@@ -161,24 +161,19 @@ static int process_answer(konf_client_t * this, char *str, konf_buf_t *buf, konf
 /*	konf_query_dump(query);
 */
 #endif
-
 	switch (konf_query__get_op(query)) {
-
 	case KONF_QUERY_OP_OK:
 		res = 0;
 		break;
-
 	case KONF_QUERY_OP_ERROR:
 		res = -1;
 		break;
-
 	case KONF_QUERY_OP_STREAM:
 		if (!(*data = konf_client_recv_data(this, buf)))
 			res = -1;
 		else
 			res = 1; /* wait for another answer */
 		break;
-
 	default:
 		res = -1;
 		break;

+ 1 - 1
konf/tree.h

@@ -52,7 +52,7 @@ int konf_tree_del_pattern(konf_tree_t * instance,
 	bool_t seq, unsigned short seq_num);
 
 /*-----------------
- * attributes 
+ * attributes
  *----------------- */
 unsigned short konf_tree__get_priority(const konf_tree_t * instance);
 unsigned char konf_tree__get_priority_hi(const konf_tree_t * instance);

+ 1 - 2
konf/tree/tree.c

@@ -120,9 +120,8 @@ konf_tree_t *konf_tree_new(const char *line, unsigned short priority)
 {
 	konf_tree_t *this = malloc(sizeof(konf_tree_t));
 
-	if (this) {
+	if (this)
 		konf_tree_init(this, line, priority);
-	}
 
 	return this;
 }