Skip to content

Commit 0932f23

Browse files
delamonpansienavi-desu
authored andcommitted
Fix error message in parse_schedule
Make it consistent with the other one: in case of error report failed input. Also change quoting from `%s' to '%s'.
1 parent 7fce206 commit 0932f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shared/schedules.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static SCHEDULEITEM *parse_schedule_item(const char *applet, const char *string)
155155
item->type = SC_TIMEOUT;
156156
errno = 0;
157157
if (sscanf(string, "%d", &item->value) != 1)
158-
eerrorx("%s: invalid timeout value in schedule `%s'",
158+
eerrorx("%s: invalid timeout value in schedule '%s'",
159159
applet, string);
160160
} else if ((after_hyph = string + (string[0] == '-')) &&
161161
((sig = parse_signal(applet, after_hyph)) != -1))
@@ -198,8 +198,8 @@ void parse_schedule(const char *applet, const char *string, int timeout)
198198
TAILQ_INSERT_TAIL(&schedule, item, entries);
199199
if (string) {
200200
if (sscanf(string, "%d", &item->value) != 1)
201-
eerrorx("%s: invalid timeout in schedule",
202-
applet);
201+
eerrorx("%s: invalid timeout value in schedule '%s'",
202+
applet, string);
203203
} else
204204
item->value = 5;
205205

0 commit comments

Comments
 (0)