And remove code we don't need anymore.
authorSean Bright <sean@malleable.com>
Tue, 19 Aug 2008 00:09:38 +0000 (00:09 +0000)
committerSean Bright <sean@malleable.com>
Tue, 19 Aug 2008 00:09:38 +0000 (00:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138779 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0ec6780..f23c98c 100644 (file)
@@ -12268,7 +12268,6 @@ static int manager_show_registry(struct mansession *s, const struct message *m)
 {
        const char *id = astman_get_header(m, "ActionID");
        char idtext[256] = "";
-       char tmpdat[256] = "";
        int total = 0;
        struct ast_tm tm;
 
@@ -12279,11 +12278,6 @@ static int manager_show_registry(struct mansession *s, const struct message *m)
 
        ASTOBJ_CONTAINER_TRAVERSE(&regl, 1, do {
                ASTOBJ_RDLOCK(iterator);
-               if (iterator->regtime.tv_sec) {
-                       ast_localtime(&iterator->regtime, &tm, NULL);
-                       ast_strftime(tmpdat, sizeof(tmpdat), "%a, %d %b %Y %T", &tm);
-               } else
-                       tmpdat[0] = '\0';
                astman_append(s,
                        "Event: RegistryEntry\r\n"
                        "Host: %s\r\n"