commit - 124eeb84c84b5d49a94e0210e4add23c6da93b47
commit + 8bffa12946bc31a810c9a0dc418fc23f0bd227b2
blob - 21dffe9b934fbaf733bba6a2b1627deb139fbb9e
blob + 35a2c6bb85273ba11c1a12f58fd24d93c3e3843c
--- gotd/libexec/got-notify-email/got-notify-email.c
+++ gotd/libexec/got-notify-email/got-notify-email.c
errx(1, "my UID %d was not found in password database",
getuid());
}
-
+
if (gethostname(hostname, sizeof(hostname)) == -1)
err(1, "gethostname");
/* used by the regression test suite */
timeoutstr = getenv("GOT_NOTIFY_EMAIL_TIMEOUT");
if (timeoutstr) {
- smtp_timeout = strtonum(timeoutstr, 0, 600, &errstr);
+ smtp_timeout = strtonum(timeoutstr, 0, 600, &errstr);
if (errstr != NULL)
errx(1, "timeout in seconds is %s: %s",
errstr, timeoutstr);