diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-08-14 13:35:22 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-08-14 13:35:22 +0100 |
commit | 5903c6ff59527362e869fedb565c56935ce8dd68 (patch) | |
tree | 48f1f0bb6c4234ee490cba28fe0339d22ff0fbd2 /src/exim_monitor | |
parent | 9904d08c64b30f68766a9c6fa12c889cf1f25d34 (diff) | |
download | exim4-5903c6ff59527362e869fedb565c56935ce8dd68.tar.gz |
tidying
Diffstat (limited to 'src/exim_monitor')
-rw-r--r-- | src/exim_monitor/em_log.c | 8 | ||||
-rw-r--r-- | src/exim_monitor/em_main.c | 2 | ||||
-rw-r--r-- | src/exim_monitor/em_menu.c | 22 | ||||
-rw-r--r-- | src/exim_monitor/em_version.c | 2 |
4 files changed, 15 insertions, 19 deletions
diff --git a/src/exim_monitor/em_log.c b/src/exim_monitor/em_log.c index 9ff994ced..73aa0e567 100644 --- a/src/exim_monitor/em_log.c +++ b/src/exim_monitor/em_log.c @@ -281,12 +281,8 @@ if (LOG != NULL) if (strstric(buffer, US"frozen", FALSE) != NULL) { queue_item *qq = find_queue(id, queue_noop, 0); - if (qq != NULL) - { - if (strstric(buffer, US"unfrozen", FALSE) != NULL) - qq->frozen = FALSE; - else qq->frozen = TRUE; - } + if (qq) + qq->frozen = strstric(buffer, US"unfrozen", FALSE) == NULL; } /* Notice defer messages, and add the destination if it diff --git a/src/exim_monitor/em_main.c b/src/exim_monitor/em_main.c index 3034a041c..00471ce3d 100644 --- a/src/exim_monitor/em_main.c +++ b/src/exim_monitor/em_main.c @@ -631,7 +631,7 @@ signal(SIGCHLD, sigchld_handler); /* Get the buffer for storing the string for the log display. */ -log_display_buffer = (uschar *)store_malloc(log_buffer_size); +log_display_buffer = US store_malloc(log_buffer_size); log_display_buffer[0] = 0; /* Initialize the data structures for the stripcharts */ diff --git a/src/exim_monitor/em_menu.c b/src/exim_monitor/em_menu.c index 6deb909da..935e82687 100644 --- a/src/exim_monitor/em_menu.c +++ b/src/exim_monitor/em_menu.c @@ -174,7 +174,7 @@ static void bodyAction(Widget w, XtPointer client_data, XtPointer call_data) { int i; -Widget text = text_create((uschar *)client_data, text_depth); +Widget text = text_create(US client_data, text_depth); FILE *f = NULL; w = w; /* Keep picky compilers happy */ @@ -183,7 +183,7 @@ call_data = call_data; for (i = 0; i < (spool_is_split? 2:1); i++) { uschar * fname; - message_subdir[0] = i != 0 ? ((uschar *)client_data)[5] : 0; + message_subdir[0] = i != 0 ? (US client_data)[5] : 0; fname = spool_fname(US"input", message_subdir, US client_data, US"-D"); if ((f = fopen(CS fname, "r"))) break; @@ -334,9 +334,9 @@ if (!delivery) if (rc == 0 && Ustrcmp(action + Ustrlen(action) - 4, "-Mes") == 0) { queue_item *q = find_queue(id, queue_noop, 0); - if (q != NULL) + if (q) { - if (q->sender != NULL) store_free(q->sender); + if (q->sender) store_free(q->sender); q->sender = store_malloc(Ustrlen(address_arg) + 1); Ustrcpy(q->sender, address_arg); } @@ -411,7 +411,7 @@ static void deliverAction(Widget w, XtPointer client_data, XtPointer call_data) { w = w; /* Keep picky compilers happy */ call_data = call_data; -ActOnMessage((uschar *)client_data, US"-v -M", US""); +ActOnMessage(US client_data, US"-v -M", US""); } @@ -424,7 +424,7 @@ static void freezeAction(Widget w, XtPointer client_data, XtPointer call_data) { w = w; /* Keep picky compilers happy */ call_data = call_data; -ActOnMessage((uschar *)client_data, US"-Mf", US""); +ActOnMessage(US client_data, US"-Mf", US""); } @@ -437,7 +437,7 @@ static void thawAction(Widget w, XtPointer client_data, XtPointer call_data) { w = w; /* Keep picky compilers happy */ call_data = call_data; -ActOnMessage((uschar *)client_data, US"-Mt", US""); +ActOnMessage(US client_data, US"-Mt", US""); } @@ -624,7 +624,7 @@ static void giveupAction(Widget w, XtPointer client_data, XtPointer call_data) { w = w; /* Keep picky compilers happy */ call_data = call_data; -ActOnMessage((uschar *)client_data, US"-v -Mg", US""); +ActOnMessage(US client_data, US"-v -Mg", US""); } @@ -637,7 +637,7 @@ static void removeAction(Widget w, XtPointer client_data, XtPointer call_data) { w = w; /* Keep picky compilers happy */ call_data = call_data; -ActOnMessage((uschar *)client_data, US"-Mrm", US""); +ActOnMessage(US client_data, US"-Mrm", US""); } @@ -650,7 +650,7 @@ static void headersAction(Widget w, XtPointer client_data, XtPointer call_data) { uschar buffer[256]; header_line *h, *next; -Widget text = text_create((uschar *)client_data, text_depth); +Widget text = text_create(US client_data, text_depth); void *reset_point; w = w; /* Keep picky compilers happy */ @@ -661,7 +661,7 @@ Then use Exim's function to read the header. */ reset_point = store_get(0); -sprintf(CS buffer, "%s-H", (uschar *)client_data); +sprintf(CS buffer, "%s-H", US client_data); if (spool_read_header(buffer, TRUE, FALSE) != spool_read_OK) { if (errno == ERRNO_SPOOLFORMAT) diff --git a/src/exim_monitor/em_version.c b/src/exim_monitor/em_version.c index a10aac4fb..0279654ac 100644 --- a/src/exim_monitor/em_version.c +++ b/src/exim_monitor/em_version.c @@ -25,7 +25,7 @@ Ustrcpy(today, __DATE__); if (today[4] == ' ') i = 1; today[3] = today[6] = '-'; -version_date = (uschar *)malloc(32); +version_date = US malloc(32); version_date[0] = 0; Ustrncat(version_date, today+4+i, 3-i); Ustrncat(version_date, today, 4); |