diff options
| -rw-r--r-- | sdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -56,7 +56,7 @@ static char *format_line(Event, Options, char *); | |||
| 56 | static int is_space(char); | 56 | static int is_space(char); |
| 57 | static void read_input(Options, EventList *); | 57 | static void read_input(Options, EventList *); |
| 58 | static Options read_op(int, char *[]); | 58 | static Options read_op(int, char *[]); |
| 59 | static char *strtrim(char *); | 59 | static char *str_trim(char *); |
| 60 | static void write_output(Options, Event *, int); | 60 | static 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 | ||
| 225 | static char * | 225 | static char * |
| 226 | strtrim(char *t) | 226 | str_trim(char *t) |
| 227 | { | 227 | { |
| 228 | char *s; | 228 | char *s; |
| 229 | 229 | ||
