aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-05-15 18:05:05 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-05-15 18:05:05 +0200
commit62c6e6f3f44545a410e2c89f6ba529468dd72d61 (patch)
tree9fbaca5ca639b6411923b24bddf953e6b2d15f7c
parent449c547e78c9b79ffc1e0c180940b6f117e435a7 (diff)
downloadsdep-62c6e6f3f44545a410e2c89f6ba529468dd72d61.tar.gz
sdep-62c6e6f3f44545a410e2c89f6ba529468dd72d61.zip
Removed conflict with string.h namespace
Diffstat (limited to '')
-rw-r--r--sdep.c6
1 files 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 *);
56static int is_space(char); 56static int is_space(char);
57static void read_input(Options, EventList *); 57static void read_input(Options, EventList *);
58static Options read_op(int, char *[]); 58static Options read_op(int, char *[]);
59static char *strtrim(char *); 59static char *str_trim(char *);
60static void write_output(Options, Event *, int); 60static void write_output(Options, Event *, int);
61 61
62 62
@@ -69,7 +69,7 @@ add_event(struct tm t, char *text, EventList *evlist)
69 next->ev.time = t; 69 next->ev.time = t;
70 next->ev.text = malloc(l); 70 next->ev.text = malloc(l);
71 strncpy(next->ev.text, text, l); 71 strncpy(next->ev.text, text, l);
72 next->ev.text = strtrim(next->ev.text); 72 next->ev.text = str_trim(next->ev.text);
73 next->next = NULL; 73 next->next = NULL;
74 74
75 if (++evlist->count == 1) { 75 if (++evlist->count == 1) {
@@ -223,7 +223,7 @@ read_op(int argc, char *argv[])
223} 223}
224 224
225static char * 225static char *
226strtrim(char *t) 226str_trim(char *t)
227{ 227{
228 char *s; 228 char *s;
229 229

Generated with cgit - Back to sebastiano.tronto.net