tmdate(2): fix typo (thanks mveety)

sysfata => sysfatal
This commit is contained in:
Ori Bernstein 2020-08-10 20:33:39 -07:00
parent 46faca54ed
commit 69c3c0e6f0

View file

@ -225,7 +225,7 @@ if(tmparse(&a, nil, "Tue Dec 10 12:36:00 PST 2019", &e) == nil)
if(*e != '\0')
sysfatal("trailing junk %s", e);
if(tmparse(&b, nil, "Tue Dec 10 15:36:00 EST 2019", &e) == nil)
sysfata("failed to parse: %r");
sysfatal("failed to parse: %r");
if(*e != '\0')
sysfatal("trailing junk %s", e);
if(tmnorm(a) == tmnorm(b) && a.nsec == b.nsec)