aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-03-22 10:24:00 +0100
committerAnders Broman <a.broman58@gmail.com>2019-03-22 18:44:46 +0000
commit84b20c0ed388a756586f08472abdb5234724e7c2 (patch)
treec8a23d134e4152cac9e6e5c517fc52212ce1dda3 /randpkt.c
parentea5c0d947e6b7bfc7d2deea5c45b91b7b63b29a3 (diff)
randpkt: fix indentation.
Change-Id: Ie999c50ef97476a8d389be45e2f12046d20273bd Reviewed-on: https://code.wireshark.org/review/32512 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/randpkt.c b/randpkt.c
index 1a5d92bac8..2ef6034d67 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -102,17 +102,17 @@ usage(gboolean is_error)
int
main(int argc, char *argv[])
{
- char *init_progfile_dir_error;
- int opt;
- int produce_type = -1;
- char *produce_filename = NULL;
- int produce_max_bytes = 5000;
- int produce_count = 1000;
- randpkt_example *example;
- guint8* type = NULL;
- int allrandom = FALSE;
- wtap_dumper *savedump;
- int ret = EXIT_SUCCESS;
+ char *init_progfile_dir_error;
+ int opt;
+ int produce_type = -1;
+ char *produce_filename = NULL;
+ int produce_max_bytes = 5000;
+ int produce_count = 1000;
+ randpkt_example *example;
+ guint8* type = NULL;
+ int allrandom = FALSE;
+ wtap_dumper *savedump;
+ int ret = EXIT_SUCCESS;
static const struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
{0, 0, 0, 0 }
@@ -130,8 +130,8 @@ main(int argc, char *argv[])
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_progfile_dir_error);
+ "capinfos: Can't get pathname of directory containing the capinfos program: %s.\n",
+ init_progfile_dir_error);
g_free(init_progfile_dir_error);
}
@@ -185,8 +185,7 @@ main(int argc, char *argv[])
/* any more command line parameters? */
if (argc > optind) {
produce_filename = argv[optind];
- }
- else {
+ } else {
usage(TRUE);
ret = INVALID_OPTION;
goto clean_exit;