From 0b68762af7055bb3f60e28ab543dcad2736028e9 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Thu, 23 Oct 2008 11:15:13 -0700 Subject: Fix "parameter has incomplete type" build warning. When libcli-util was moved to the top level (3be0f6ea56ed8e43cd287ed020e942efb675b87b) it introduced a build warning. Since ndr_map_error2ntstatus depends on the definition of enum ndr_err_code and libndr.h can't be easily included in error.h, I moved the definition of enum ndr_err_code to libndr.h. This also eliminates the need for the duplicate definition in proto.h --- libcli/util/error.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libcli/util') diff --git a/libcli/util/error.h b/libcli/util/error.h index 84255448a0..5a7cc1b0b9 100644 --- a/libcli/util/error.h +++ b/libcli/util/error.h @@ -46,11 +46,4 @@ WERROR ntstatus_to_werror(NTSTATUS error); *********************************************************************/ NTSTATUS map_nt_error_from_unix(int unix_error); -enum ndr_err_code; - -/********************************************************************* - Map an NT error code from a NDR error code. -*********************************************************************/ -NTSTATUS ndr_map_error2ntstatus(enum ndr_err_code ndr_err); - #endif /* _SAMBA_ERROR_H */ -- cgit