#include <wsutil/wsgetopt.h>
#endif
-#include <wsutil/clopts_common.h>
-#include <wsutil/cmdarg_err.h>
+#include <ui/clopts_common.h>
+#include <ui/cmdarg_err.h>
#include <wsutil/filesystem.h>
#include <wsutil/file_util.h>
#include <wsutil/privileges.h>
fprintf(stderr, " defaulting to WTAP_ENCAP_PER_PACKET\n");
fprintf(stderr, " %s had type %s (%s)\n",
in_files[0].filename,
- wtap_encap_string(first_frame_type),
- wtap_encap_short_string(first_frame_type));
+ wtap_encap_description(first_frame_type),
+ wtap_encap_name(first_frame_type));
fprintf(stderr, " %s had type %s (%s)\n",
in_files[i].filename,
- wtap_encap_string(this_frame_type),
- wtap_encap_short_string(this_frame_type));
+ wtap_encap_description(this_frame_type),
+ wtap_encap_name(this_frame_type));
break;
}
}
}
fprintf(stderr, "mergecap: selected frame_type %s (%s)\n",
- wtap_encap_string(num),
- wtap_encap_short_string(num));
+ wtap_encap_description(num),
+ wtap_encap_name(num));
break;
case MERGE_EVENT_READY_TO_MERGE:
}
int
-real_main(int argc, char *argv[])
+main(int argc, char *argv[])
{
char *init_progfile_dir_error;
int opt;