projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ebf99
)
tests: Fix a shadowed function name in test-pseudotcp
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Thu, 16 Jan 2014 16:05:12 +0000
(16:05 +0000)
committer
Olivier Crête
<olivier.crete@collabora.com>
Fri, 31 Jan 2014 06:49:07 +0000
(
01:49
-0500)
The write() function already exists; we can’t re-define it as a
callback.
tests/test-pseudotcp.c
patch
|
blob
|
history
diff --git
a/tests/test-pseudotcp.c
b/tests/test-pseudotcp.c
index
84f5c9b
..
642c18e
100644
(file)
--- 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);