diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-25 10:57:15 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-25 10:57:15 +0000 |
commit | 3c746d45b9512fd4efdabe7533b3137bbf5d6b8f (patch) | |
tree | 9a917a19f9faf4d2766126637a1244fa001c054a /channels | |
parent | 7c5a33d979721cc76a417bc0222c73d8a222630a (diff) |
various code cleanups (bug #4353)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5764 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 4 | ||||
-rwxr-xr-x | channels/iax2-parser.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 758429c69..bb3e37a90 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -267,6 +267,8 @@ static struct ast_channel inuse = { "GR-303InUse" }; #ifdef PRI_GETSET_TIMERS static int pritimers[PRI_MAX_TIMERS]; #endif +static int pridebugfd = -1; +static char pridebugfilename[1024]=""; #endif /* Wait up to 16 seconds for first digit (FXO logic) */ @@ -288,8 +290,6 @@ AST_MUTEX_DEFINE_STATIC(iflock); static int ifcount = 0; AST_MUTEX_DEFINE_STATIC(pridebugfdlock); -static int pridebugfd = -1; -static char pridebugfilename[1024]=""; /* Whether we answer on a Polarity Switch event */ static int answeronpolarityswitch = 0; diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index 1851b4a74..cb2125387 100755 --- a/channels/iax2-parser.c +++ b/channels/iax2-parser.c @@ -119,7 +119,7 @@ static void dump_datetime(char *output, int maxlen, void *value, int len) tm.tm_mday = (val >> 16) & 0x1f; tm.tm_mon = ((val >> 21) & 0x0f) - 1; tm.tm_year = ((val >> 25) & 0x7f) + 100; - strftime(output, maxlen, "%F %T", &tm); + strftime(output, maxlen, "%Y-%m-%d %T", &tm); } else ast_copy_string(output, "Invalid DATETIME format!", maxlen); } |