From 62c6e6f3f44545a410e2c89f6ba529468dd72d61 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 15 May 2023 18:05:05 +0200 Subject: Removed conflict with string.h namespace --- sdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdep.c b/sdep.c index eae0b3d..9279c39 100644 --- a/sdep.c +++ b/sdep.c @@ -56,7 +56,7 @@ static char *format_line(Event, Options, char *); static int is_space(char); static void read_input(Options, EventList *); static Options read_op(int, char *[]); -static char *strtrim(char *); +static char *str_trim(char *); static void write_output(Options, Event *, int); @@ -69,7 +69,7 @@ add_event(struct tm t, char *text, EventList *evlist) next->ev.time = t; next->ev.text = malloc(l); strncpy(next->ev.text, text, l); - next->ev.text = strtrim(next->ev.text); + next->ev.text = str_trim(next->ev.text); next->next = NULL; if (++evlist->count == 1) { @@ -223,7 +223,7 @@ read_op(int argc, char *argv[]) } static char * -strtrim(char *t) +str_trim(char *t) { char *s; -- cgit v1.3