Jelajahi Sumber

netbios_ns: remove abort

Thomas Guillem 10 tahun lalu
induk
melakukan
6cd3b06c8f
2 mengubah file dengan 1 tambahan dan 9 penghapusan
  1. 0 8
      include/bdsm/netbios_ns.h
  2. 1 1
      src/netbios_ns.c

+ 0 - 8
include/bdsm/netbios_ns.h

@@ -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

+ 1 - 1
src/netbios_ns.c

@@ -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));