summaryrefslogtreecommitdiff
path: root/src/w32-glib-io.c
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@gnupg.org>2019-03-26 19:22:44 +0100
committerAndre Heinecke <aheinecke@gnupg.org>2019-03-26 19:22:44 +0100
commit213c4bc1eb1f45695cc3955cc722ebb363dcbdd0 (patch)
treeaeab444a62c9864ce328dc4fe99f335a2151f030 /src/w32-glib-io.c
parent5d2b3b28aa2d0d2bb160e92054f11f469471d86f (diff)
downloadgpgme-213c4bc1eb1f45695cc3955cc722ebb363dcbdd0.tar.gz
core,w32,glib: Fix build of w32-glib-io.c
* src/w32-glib-io.c (_gpgme_io_pipe, _gpgme_io_connect): Do not use TRACE_SUC in a return statement.
Diffstat (limited to 'src/w32-glib-io.c')
-rw-r--r--src/w32-glib-io.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/w32-glib-io.c b/src/w32-glib-io.c
index 8c8722ce..e2e3b8ab 100644
--- a/src/w32-glib-io.c
+++ b/src/w32-glib-io.c
@@ -421,12 +421,13 @@ _gpgme_io_pipe (int filedes[2], int inherit_idx)
return TRACE_SYSRES (-1);
}
- return TRACE_SUC ("read=0x%x/%p, write=0x%x/%p, channel=%p",
- filedes[0],
- (HANDLE) _get_osfhandle (giochannel_table[filedes[0]].fd),
- filedes[1],
- (HANDLE) _get_osfhandle (giochannel_table[filedes[1]].fd),
- giochannel_table[1 - inherit_idx].chan);
+ TRACE_SUC ("read=0x%x/%p, write=0x%x/%p, channel=%p",
+ filedes[0],
+ (HANDLE) _get_osfhandle (giochannel_table[filedes[0]].fd),
+ filedes[1],
+ (HANDLE) _get_osfhandle (giochannel_table[filedes[1]].fd),
+ giochannel_table[1 - inherit_idx].chan);
+ return 0;
}
@@ -1081,5 +1082,7 @@ _gpgme_io_connect (int fd, struct sockaddr *addr, int addrlen)
return TRACE_SYSRES (-1);
}
- return TRACE_SUC ("");
+ TRACE_SUC ("");
+
+ return 0;
}