diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-01-16 16:05:12 +0000 |
---|---|---|
committer | Olivier Crête <olivier.crete@collabora.com> | 2014-01-31 01:49:07 -0500 |
commit | 9661150dcda7939d108e583e7681352f99e581c8 (patch) | |
tree | 30b4dc8d6044a6800a84eaeeb596b40c416cde7a | |
parent | e9ebf991e4ff023818c4594e641fb6c85e48c436 (diff) | |
download | libnice-9661150dcda7939d108e583e7681352f99e581c8.tar.gz |
tests: Fix a shadowed function name in test-pseudotcp
The write() function already exists; we can’t re-define it as a
callback.
-rw-r--r-- | tests/test-pseudotcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-pseudotcp.c b/tests/test-pseudotcp.c index 84f5c9b..642c18e 100644 --- a/tests/test-pseudotcp.c +++ b/tests/test-pseudotcp.c @@ -177,7 +177,7 @@ static gboolean notify_packet (gpointer user_data) return FALSE; } -static PseudoTcpWriteResult write (PseudoTcpSocket *sock, +static PseudoTcpWriteResult write_packet (PseudoTcpSocket *sock, const gchar *buffer, guint32 len, gpointer user_data) { struct notify_data *data; @@ -247,7 +247,9 @@ static void adjust_clock (PseudoTcpSocket *sock) int main (int argc, char *argv[]) { - PseudoTcpCallbacks cbs = {NULL, opened, readable, writable, closed, write}; + PseudoTcpCallbacks cbs = { + NULL, opened, readable, writable, closed, write_packet + }; mainloop = g_main_loop_new (NULL, FALSE); |