1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 18:14:20 +00:00

Mingw32 doesn't support strptime so use sscanf.

This commit is contained in:
Con Kolivas 2011-09-01 23:18:31 +10:00
parent 71ce9bc88a
commit 71eff46098

2
main.c
View File

@ -1095,7 +1095,7 @@ static char *enable_debug(bool *flag)
static char *set_schedtime(const char *arg, struct schedtime *st) static char *set_schedtime(const char *arg, struct schedtime *st)
{ {
if (!strptime(arg, "%H:%M", &st->tm)) if (sscanf(arg, "%d:%d", &st->tm.tm_hour, &st->tm.tm_min) != 2)
return "Invalid time set, should be HH:MM"; return "Invalid time set, should be HH:MM";
st->enable = true; st->enable = true;
return NULL; return NULL;