Browse code

return error code

git-svn: trunk@2272

Tomasz Kojm authored on 2006/09/15 07:45:57
Showing 1 changed files
... ...
@@ -247,7 +247,7 @@ static struct cl_node *reload_db(struct cl_node *root, unsigned int dboptions, c
247 247
 
248 248
 int acceptloop_th(int *socketds, int nsockets, struct cl_node *root, unsigned int dboptions, const struct cfgstruct *copt)
249 249
 {
250
-	int new_sd, max_threads, i, ret;
250
+	int new_sd, max_threads, i, ret = 0;
251 251
 	unsigned int options = 0;
252 252
 	threadpool_t *thr_pool;
253 253
 #ifndef	C_WINDOWS
... ...
@@ -632,5 +632,5 @@ int acceptloop_th(int *socketds, int nsockets, struct cl_node *root, unsigned in
632 632
     time(&current_time);
633 633
     logg("--- Stopped at %s", ctime(&current_time));
634 634
 
635
-    return 0;
635
+    return ret;
636 636
 }