#include <wsutil/privileges.h>
#include <wsutil/filesystem.h>
+#include <wsutil/file_util.h>
#ifdef HAVE_PLUGINS
#include <wsutil/plugins.h>
#ifdef HAVE_PLUGINS
if ((init_progfile_dir_error = init_progfile_dir(argv[0], main))) {
- g_warning("capinfos: init_progfile_dir(): %s", init_progfile_dir_error);
+ g_warning("captype: init_progfile_dir(): %s", init_progfile_dir_error);
g_free(init_progfile_dir_error);
} else {
/* Register all the plugin types we have. */
/* Set the C-language locale to the native environment. */
setlocale(LC_ALL, "");
- if ((argc - optind) < 1) {
+ if (argc < 2) {
usage();
return 1;
}
wth = wtap_open_offline(argv[i], &err, &err_info, FALSE);
if (!wth) {
- fprintf(stderr, "capinfos: Can't open %s: %s\n", argv[i],
+ fprintf(stderr, "captype: Can't open %s: %s\n", argv[i],
wtap_strerror(err));
switch (err) {