Skip to content

Commit

Permalink
netbios_ns: remove abort
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem committed Jan 29, 2015
1 parent 63d9831 commit 6cd3b06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions include/bdsm/netbios_ns.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ int netbios_ns_resolve(netbios_ns *ns, const char *name,
*/
const char *netbios_ns_inverse(netbios_ns *ns, uint32_t ip);

/**
* @brief abort any pending netbios_ns_* operations
*
*
* @param ns The name service object.
*/
void netbios_ns_abort(netbios_ns *ns);

typedef struct
{
// Opaque pointer that will be passed to callbacks
Expand Down
2 changes: 1 addition & 1 deletion src/netbios_ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ static int netbios_ns_is_aborted(netbios_ns *ns)
return (res < 0 || FD_ISSET(ns->abort_pipe[0], &read_fds)) ? 1 : 0;
}

void netbios_ns_abort(netbios_ns *ns)
static void netbios_ns_abort(netbios_ns *ns)
{
uint8_t buf = '\0';
write(ns->abort_pipe[1], &buf, sizeof(uint8_t));
Expand Down

0 comments on commit 6cd3b06

Please sign in to comment.