diff --git a/.gitignore b/.gitignore index b5ae5ebb9..4740358fa 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ lib*.so* *.so.* *.d .depend +*.gcno +*.gcda TAGS tags GPATH diff --git a/minix/commands/gcov-pull/gcov-pull.c b/minix/commands/gcov-pull/gcov-pull.c index 361dc8206..11b626390 100644 --- a/minix/commands/gcov-pull/gcov-pull.c +++ b/minix/commands/gcov-pull/gcov-pull.c @@ -32,11 +32,11 @@ int main(int argc, char *argv[]) { FILE *fd = NULL; int server_nr, command, size, result; - char buff[BUFF_SZ]; /* Buffer for all the metadata and file data sent */ + static char buff[BUFF_SZ]; /* Buffer for all the metadata and file data */ - if(argc!=2 || sscanf(argv[1], "%d", &server_nr)!=1) { - fprintf(stderr, "Usage: %s \n", argv[0]); - return 1; + if (argc != 2) { + fprintf(stderr, "Usage: %s