Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang-dnssd
dnssd_erlang-0.9-ei.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dnssd_erlang-0.9-ei.patch of Package erlang-dnssd
diff -Ndurp dnssd_erlang-0.9/c_src/dnssd.c dnssd_erlang-0.9-ei/c_src/dnssd.c --- dnssd_erlang-0.9/c_src/dnssd.c 2013-03-10 03:18:43.000000000 +0200 +++ dnssd_erlang-0.9-ei/c_src/dnssd.c 2022-08-07 18:28:44.270358383 +0300 @@ -22,8 +22,8 @@ #define __WIN32__ #endif +#include <ei.h> #include <erl_driver.h> -#include <erl_interface.h> #include <string.h> #include <dns_sd.h> @@ -208,7 +208,7 @@ static ErlDrvSSizeT call(ErlDrvData edd, goto badarg; } } else if (cmd == DNSSD_CMD_BROWSE) { - if (!arg.ei_type == ERL_TUPLE || arg.arity != 2) goto badarg; + if (arg.ei_type != ERL_SMALL_TUPLE_EXT || arg.arity != 2) goto badarg; /* decode type */ ei_decode_ei_term(buf, &index, &type); if (type.ei_type != ERL_BINARY_EXT) goto badarg; @@ -237,7 +237,7 @@ static ErlDrvSSizeT call(ErlDrvData edd, driver_free(type_tmp); driver_free(domain_tmp); } else if (cmd == DNSSD_CMD_RESOLVE) { - if (!arg.ei_type == ERL_TUPLE || arg.arity != 3) goto badarg; + if (arg.ei_type != ERL_SMALL_TUPLE_EXT || arg.arity != 3) goto badarg; /* decode name */ ei_decode_ei_term(buf, &index, &name); if (name.ei_type != ERL_BINARY_EXT) goto badarg; @@ -281,7 +281,7 @@ static ErlDrvSSizeT call(ErlDrvData edd, driver_free(type_tmp); driver_free(domain_tmp); } else if (cmd == DNSSD_CMD_REGISTER) { - if (!arg.ei_type == ERL_TUPLE || arg.arity != 6) goto badarg; + if (arg.ei_type != ERL_SMALL_TUPLE_EXT || arg.arity != 6) goto badarg; /* decode name */ ei_decode_ei_term(buf, &index, &name); if (name.ei_type != ERL_BINARY_EXT) goto badarg;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor