Browse code

onas_...cleanup function return void remove

@kolbma
kolbma onas_...cleanup function return void

The functions
onas_cleanup()
onas_context_cleanup()
doesn't return anything so we need type void and not void*.

arlecchino authored on 2019/09/12 03:17:49
Showing 2 changed files
... ...
@@ -384,13 +384,13 @@ void help(void)
384 384
     exit(0);
385 385
 }
386 386
 
387
-void *onas_cleanup(struct onas_context *ctx)
387
+void onas_cleanup(struct onas_context *ctx)
388 388
 {
389 389
     onas_context_cleanup(ctx);
390 390
     logg_close();
391 391
 }
392 392
 
393
-void *onas_context_cleanup(struct onas_context *ctx)
393
+void onas_context_cleanup(struct onas_context *ctx)
394 394
 {
395 395
     close(ctx->fan_fd);
396 396
     optfree((struct optstruct *)ctx->opts);
... ...
@@ -76,8 +76,8 @@ struct onas_context {
76 76
 #endif
77 77
 
78 78
 struct onas_context *onas_init_context(void);
79
-void *onas_cleanup(struct onas_context *ctx);
80
-void *onas_context_cleanup(struct onas_context *ctx);
79
+void onas_cleanup(struct onas_context *ctx);
80
+void onas_context_cleanup(struct onas_context *ctx);
81 81
 cl_error_t onas_check_client_connection(struct onas_context **ctx);
82 82
 int onas_start_eloop(struct onas_context **ctx);
83 83
 void help(void);