diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-08-09 17:09:28 -0400 |
---|---|---|
committer | Michael McConville <mmcconville@mykolab.com> | 2015-08-09 17:09:28 -0400 |
commit | 1b5191a608bf3e267b67a8448108a0509d663731 (patch) | |
tree | 5486e2d0ff5e16bc07df70280435119ebb138900 | |
parent | 05bd5f2e49de9bba67f35fd30a2fc550c3a1f84b (diff) | |
download | pidgin-1b5191a608bf3e267b67a8448108a0509d663731.tar.gz |
Change '#if NOTYET' to '#if 0' for clarity.
-rw-r--r-- | libpurple/stun.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libpurple/stun.c b/libpurple/stun.c index e6d2d5b317..e912fb4525 100644 --- a/libpurple/stun.c +++ b/libpurple/stun.c @@ -63,13 +63,13 @@ struct stun_attrib { guint16 len; }; -#ifdef NOTYET +#if 0 struct stun_change { struct stun_header hdr; struct stun_attrib attrib; char value[4]; }; -#endif +#endif /* 0 */ struct stun_conn { int fd; @@ -145,7 +145,7 @@ static gboolean timeoutfunc(gpointer data) { return TRUE; } -#ifdef NOTYET +#if 0 static void do_test2(struct stun_conn *sc) { struct stun_change data; data.hdr.type = htons(0x0001); @@ -164,7 +164,7 @@ static void do_test2(struct stun_conn *sc) { sendto(sc->fd, sc->packet, sc->packetsize, 0, (struct sockaddr *)&(sc->addr), sizeof(struct sockaddr_in)); sc->timeout = purple_timeout_add(500, (GSourceFunc) timeoutfunc, sc); } -#endif +#endif /* 0 */ static void reply_cb(gpointer data, gint source, PurpleInputCondition cond) { struct stun_conn *sc = data; @@ -266,7 +266,7 @@ static void reply_cb(gpointer data, gint source, PurpleInputCondition cond) { } } -#ifndef NOTYET +#if 1 close_stun_conn(sc); do_callbacks(); #else @@ -278,7 +278,7 @@ static void reply_cb(gpointer data, gint source, PurpleInputCondition cond) { close_stun_conn(sc); nattype.type = PURPLE_STUN_NAT_TYPE_FULL_CONE; do_callbacks(); -#endif +#endif /* 1 */ } } |