git-svn-id: https://klish.googlecode.com/svn/trunk@388 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
@@ -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;
}
@@ -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;
case KONF_QUERY_OP_STREAM:
if (!(*data = konf_client_recv_data(this, buf)))
else
res = 1; /* wait for another answer */
default:
@@ -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);
@@ -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));
konf_tree_init(this, line, priority);