diff --git a/regress/sys/fs/tmpfs/Makefile b/regress/sys/fs/tmpfs/Makefile index 2b9ee5b82814..84fd485d994e 100644 --- a/regress/sys/fs/tmpfs/Makefile +++ b/regress/sys/fs/tmpfs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2005/09/10 19:20:51 jmmv Exp $ +# $NetBSD: Makefile,v 1.2 2006/03/18 17:09:35 jmmv Exp $ tests= t_mount tests+= t_statvfs @@ -32,6 +32,7 @@ regress: ${tests} PROG= h_tools NOMAN= # defined +WARNS= 4 t_sizes t_sockets t_statvfs: h_tools diff --git a/regress/sys/fs/tmpfs/h_tools.c b/regress/sys/fs/tmpfs/h_tools.c index ebc42df5b56b..d64879001d39 100644 --- a/regress/sys/fs/tmpfs/h_tools.c +++ b/regress/sys/fs/tmpfs/h_tools.c @@ -1,4 +1,4 @@ -/* $NetBSD: h_tools.c,v 1.2 2005/09/23 15:36:15 jmmv Exp $ */ +/* $NetBSD: h_tools.c,v 1.3 2006/03/18 17:09:35 jmmv Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -45,16 +45,25 @@ #include #include +#include #include #include #include #include #include +#include #include /* --------------------------------------------------------------------- */ +static int getfh_main(int, char **); +static int rename_main(int, char **); +static int sockets_main(int, char **); +static int statvfs_main(int, char **); + +/* --------------------------------------------------------------------- */ + int getfh_main(int argc, char **argv) { @@ -84,7 +93,6 @@ getfh_main(int argc, char **argv) int rename_main(int argc, char **argv) { - int error; if (argc < 3) return EXIT_FAILURE; @@ -169,6 +177,8 @@ main(int argc, char **argv) error = sockets_main(argc, argv); else if (strcmp(argv[0], "statvfs") == 0) error = statvfs_main(argc, argv); + else + error = EXIT_FAILURE; return error; }