Skip to content

Commit

Permalink
fix possible illegal conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
sphaero committed Aug 31, 2021
1 parent 3e11705 commit b4d47e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zoscdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ determine_socket( const char *bind)
if (zrex_eq(rex, bind, "^(.+)://.*") )
{
const char *transport = zrex_hit(rex, 1);

if ( streq(transport, "ipc") )
retsock = zsock_new_pull( bind );
#ifdef ZMQ_DGRAM
if ( streq(transport, "udp") )
else if ( streq(transport, "udp") )
retsock = zsock_new_dgram(bind);
#endif
#ifdef ZMQ_STREAM
Expand All @@ -56,9 +59,6 @@ determine_socket( const char *bind)
}
#endif

else if ( streq(transport, "ipc") )
retsock = zsock_new_pull( bind );

else
zsys_error("Not a valid transport in %s", transport);

Expand Down

0 comments on commit b4d47e4

Please sign in to comment.