summaryrefslogtreecommitdiff
path: root/logview/src/logview-utils.c
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 11:57:35 +0200
committerZenWalker <[email protected]>2019-07-04 15:07:12 +0200
commit61b94ba9a4953aba56764dac7e0f8751aaa11571 (patch)
treec9097e01f74035b305fd47190a7f0d1bb1eb188e /logview/src/logview-utils.c
parent34505eb50fb6f3b49c8ef08d59bcef4f6f27f6cf (diff)
downloadmate-utils-61b94ba9a4953aba56764dac7e0f8751aaa11571.tar.bz2
mate-utils-61b94ba9a4953aba56764dac7e0f8751aaa11571.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'logview/src/logview-utils.c')
-rw-r--r--logview/src/logview-utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/logview/src/logview-utils.c b/logview/src/logview-utils.c
index c8a61ed1..c74ec399 100644
--- a/logview/src/logview-utils.c
+++ b/logview/src/logview-utils.c
@@ -71,7 +71,7 @@ logview_utils_day_list_copy (GSList *days)
return g_slist_reverse (retval);
}
-gint
+gint
days_compare (gconstpointer a, gconstpointer b)
{
const Day *day1 = a, *day2 = b;
@@ -85,7 +85,7 @@ string_get_date (const char *line, char **time_string, int *timestamp_len)
GDate *date = NULL;
struct tm tp;
char *cp = NULL, *timestamp = NULL;
-
+
/* it's safe to assume that if strptime returns NULL, it's
* because of an error (format unmatched). being a log file, it's very
* unlikely that there aren't any more characters after the date.
@@ -133,7 +133,7 @@ out:
* and are then corrected to the correct year once we
* reach the end.
*
- * Returns: a #GSList of #Day structures.
+ * Returns: a #GSList of #Day structures.
*/
GSList *
@@ -216,7 +216,7 @@ log_read_dates (const char **buffer_lines, time_t current)
} else {
/* we can't find the same date here; go back to a safer range. */
rangemax = i;
- i = floor (((float) rangemin + (float) i) / 2.);
+ i = floor (((float) rangemin + (float) i) / 2.);
}
}
@@ -228,7 +228,7 @@ log_read_dates (const char **buffer_lines, time_t current)
* of the buffer: reset the parameters for the next day.
*/
GDate *newdate = NULL;
-
+
for (i = day->last_line + 1; buffer_lines[i]; i++) {
if ((newdate = string_get_date (buffer_lines[i], &date_string, &timestamp_len)) != NULL)
break;