aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-02-18 19:12:27 -0800
committerGuy Harris <guy@alum.mit.edu>2019-02-19 03:13:05 +0000
commita325c949bc5466cdd4bdb9b676eb090275953371 (patch)
treea486c6c3041e5ce45f4a2b18f7da43332beb3cc6 /editcap.c
parentab352c61fd6c61bb03fafb4d5eac7af780f96736 (diff)
Clean up indentation.
Change-Id: I28280eddda1c318ba82ec8f0372e38093abbaa14 Reviewed-on: https://code.wireshark.org/review/32091 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/editcap.c b/editcap.c
index 5d162c31be..187b1e2211 100644
--- a/editcap.c
+++ b/editcap.c
@@ -339,7 +339,7 @@ selected(guint recno)
}
}
- return 0;
+ return 0;
}
static gboolean
@@ -969,9 +969,9 @@ framenum_compare(gconstpointer a, gconstpointer b, gpointer user_data _U_)
static void
failure_warning_message(const char *msg_format, va_list ap)
{
- fprintf(stderr, "editcap: ");
- vfprintf(stderr, msg_format, ap);
- fprintf(stderr, "\n");
+ fprintf(stderr, "editcap: ");
+ vfprintf(stderr, msg_format, ap);
+ fprintf(stderr, "\n");
}
/*
@@ -980,25 +980,25 @@ failure_warning_message(const char *msg_format, va_list ap)
static void
failure_message_cont(const char *msg_format, va_list ap)
{
- vfprintf(stderr, msg_format, ap);
- fprintf(stderr, "\n");
+ vfprintf(stderr, msg_format, ap);
+ fprintf(stderr, "\n");
}
static wtap_dumper *
editcap_dump_open(const char *filename, const wtap_dump_params *params,
int *write_err)
{
- wtap_dumper *pdh;
-
- if (strcmp(filename, "-") == 0) {
- /* Write to the standard output. */
- pdh = wtap_dump_open_stdout(out_file_type_subtype, WTAP_UNCOMPRESSED,
- params, write_err);
- } else {
- pdh = wtap_dump_open(filename, out_file_type_subtype, WTAP_UNCOMPRESSED,
- params, write_err);
- }
- return pdh;
+ wtap_dumper *pdh;
+
+ if (strcmp(filename, "-") == 0) {
+ /* Write to the standard output. */
+ pdh = wtap_dump_open_stdout(out_file_type_subtype, WTAP_UNCOMPRESSED,
+ params, write_err);
+ } else {
+ pdh = wtap_dump_open(filename, out_file_type_subtype, WTAP_UNCOMPRESSED,
+ params, write_err);
+ }
+ return pdh;
}
int