aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-11 14:33:45 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-11 14:33:45 +0000
commite350c6beb6eb363ad0243cf000c10c5dd3adcfcb (patch)
treee02c075722e432116b7040c842256030b2d63bcb /apps
parent9b89b7f2c0dcfa76f0cb6f17dd1d56dd299fa32e (diff)
stop checking for mktime() in the configure script... we don't use it, and the test is buggy under gcc 4.3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@107461 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c
index d56ada4fc..53e8590df 100644
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -467,7 +467,7 @@ static time_t unpackdate (unsigned char *i)
t.tm_min += 15 * ((i[6] & 0x7) * 10 + (i[6] >> 4));
else
t.tm_min -= 15 * ((i[6] & 0x7) * 10 + (i[6] >> 4));
- return mktime (&t);
+ return ast_mktime(&t, NULL);
}
/*! \brief unpacks bytes (7 bit encoding) at i, len l septets,
@@ -755,7 +755,7 @@ static void sms_readfile (sms_t * h, char *fn)
t.tm_min = M;
t.tm_sec = S;
t.tm_isdst = -1;
- h->scts = mktime (&t);
+ h->scts = ast_mktime(&t, NULL);
if (h->scts == (time_t) - 1)
ast_log (LOG_WARNING, "Bad date/timein %s: %s", fn, p);
}