X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=fa1768b52f26eb69b6806f18c42d098a0267259e;hp=666990dba411e65b4dfff4d4d227332e7401ac92;hb=5587494468627e20fe622b6055689717262d09ab;hpb=3cfb1d880ebf22546486316cb74cce21f007eb07 diff --git a/audioc.c b/audioc.c index 666990db..fa1768b5 100644 --- a/audioc.c +++ b/audioc.c @@ -6,6 +6,7 @@ /** \file audioc.c the client program used to connect to para_audiod */ +#include #include #include @@ -18,8 +19,8 @@ INIT_AUDIOC_ERRLISTS; -/** the gengetopt structure containing command line args */ -struct audioc_args_info conf; +/** The gengetopt structure containing command line args. */ +static struct audioc_args_info conf; static int loglevel; INIT_STDERR_LOGGING(loglevel); @@ -151,6 +152,8 @@ int main(int argc, char *argv[]) goto out; } loaded -= ret; + if (loaded && ret) + memmove(buf, buf + ret, loaded); } } out: