*
* Copyright (C) 1999 by Gilbert Ramirez <gram@alumni.rice.edu>
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <config.h>
* Attempt to get the pathname of the directory containing the
* executable file.
*/
- init_progfile_dir_error = init_progfile_dir(argv[0], main);
+ init_progfile_dir_error = init_progfile_dir(argv[0]);
if (init_progfile_dir_error != NULL) {
fprintf(stderr,
"capinfos: Can't get pathname of directory containing the capinfos program: %s.\n",
init_report_message(failure_warning_message, failure_warning_message,
NULL, NULL, NULL);
- wtap_init();
+ wtap_init(TRUE);
cmdarg_err_init(failure_warning_message, failure_message_cont);
ret = randpkt_example_init(example, produce_filename, produce_max_bytes);
if (ret != EXIT_SUCCESS)
goto clean_exit;
- randpkt_loop(example, produce_count);
+ randpkt_loop(example, produce_count, 0);
} else {
if (type) {
fprintf(stderr, "Can't set type in random mode\n");
goto clean_exit;
while (produce_count-- > 0) {
- randpkt_loop(example, 1);
+ randpkt_loop(example, 1, 0);
produce_type = randpkt_parse_type(NULL);
savedump = example->dump;