#include "nls.h"
#include "closestream.h"
#include "c.h"
-#include "exitcodes.h"
/* Exit codes used by findfs. */
#define FINDFS_SUCCESS 0 /* no errors */
fputs(_("Find a filesystem by label or UUID.\n"), out);
fputs(USAGE_OPTIONS, out);
- print_usage_help_options(16);
+ fprintf(out, USAGE_HELP_OPTIONS(16));
fprintf(out, USAGE_MAN_TAIL("findfs(8)"));
exit(FINDFS_SUCCESS);
}
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- atexit(close_stdout);
+ close_stdout_atexit();
if (argc != 2) {
/* we return '2' for backward compatibility
while ((c = getopt_long(argc, argv, "Vh", longopts, NULL)) != -1)
switch (c) {
case 'V':
- printf(UTIL_LINUX_VERSION);
- return FINDFS_SUCCESS;
+ print_version(FINDFS_SUCCESS);
case 'h':
usage();
default:
puts(dev);
return FINDFS_SUCCESS;
}
-