summaryrefslogtreecommitdiffstats
path: root/src/proxyfunc.c
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-04 22:33:15 +0000
committerDavid Troy <dave@popvox.com>2006-04-04 22:33:15 +0000
commit08a84749d9c92829d580c508f3b0256f7b188321 (patch)
treed5261e175542cabcd8156c68c27e0aad7409b1f1 /src/proxyfunc.c
parentd9e53b2987116fa0d335428eabb5c0d35ba11017 (diff)
downloadastmanproxy-08a84749d9c92829d580c508f3b0256f7b188321.tar.gz
astmanproxy-08a84749d9c92829d580c508f3b0256f7b188321.tar.xz
astmanproxy-08a84749d9c92829d580c508f3b0256f7b188321.zip
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@83 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'src/proxyfunc.c')
-rw-r--r--src/proxyfunc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/proxyfunc.c b/src/proxyfunc.c
index 54df298..d1d5f38 100644
--- a/src/proxyfunc.c
+++ b/src/proxyfunc.c
@@ -54,7 +54,6 @@ void *ProxySetOutputFormat(struct mansession *s, struct message *m) {
value = astman_get_header(m, "OutputFormat");
SetIOHandlers(s, s->input->formatname, value);
- /* TODO: this is retarded */
memset(&mo, 0, sizeof(struct message));
AddHeader(&mo, "ProxyResponse: Success");
@@ -206,10 +205,7 @@ int ProxyAddServer(struct mansession *s, struct message *m) {
fprintf(stderr, "Failed to allocate server credentials: %s\n", strerror(errno));
exit(1);
}
- memset(srv, 0, sizeof (struct ast_server) );
-
- /* TODO: Disallow adding of duplicate servers? Or not, I suppose that could be useful (events on/off) */
memset(srv, 0, sizeof(struct ast_server) );
memset(&mo, 0, sizeof(struct message));
strcpy(srv->ast_host, astman_get_header(m, "Server"));