bin/dsm: don't use private members of bdsm structs

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Hide non public headers

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
DEBUG: add BDSM_perror

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
use static

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
use calloc

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
add netbios_ns_abort

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
fix indent

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
use calloc instead of malloc/memset

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
check malloc/calloc and don't assert

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
check smb_buffer_alloc

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Bump the ABI to 1:0:0

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Fix PKG-CONFIG generation
fix strict-aliasing warning