From e13df9bc2a622a6df960b0f7e2648078aa6ae097 Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 19 Apr 2006 05:06:34 +0200 Subject: [PATCH] cosmetics --- audioc.c | 6 +++--- write.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/audioc.c b/audioc.c index 1fa98802..b9e7853f 100644 --- a/audioc.c +++ b/audioc.c @@ -51,7 +51,7 @@ static char *concat_args(const int argc, char * const *argv) static char *configfile_exists(void) { static char *config_file; - struct stat statbuf; + struct stat statbuf; if (!config_file) { @@ -59,7 +59,7 @@ static char *configfile_exists(void) config_file = make_message("%s/.paraslash/audioc.conf", home); free(home); } - if (!stat(config_file, &statbuf)) + if (!stat(config_file, &statbuf)) return config_file; return NULL; } @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) goto out; } if (loaded < conf.bufsize_arg && FD_ISSET(fd, &rfd)) { - len = recv_bin_buffer(fd, buf + loaded, + len = recv_bin_buffer(fd, buf + loaded, conf.bufsize_arg - loaded); if (len <= 0) { ret = len < 0? -E_READ : 0; diff --git a/write.c b/write.c index 5e8c3195..3fb0ef0d 100644 --- a/write.c +++ b/write.c @@ -167,7 +167,6 @@ out: wng_close(wng); return ret; } -/* write.c */ struct writer_node_group *check_args(void) { -- 2.39.5