summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kroeger <andrew@id10ts.net>2009-06-01 04:36:50 -0500
committerAndrew Bartlett <abartlet@samba.org>2009-06-01 19:55:34 +1000
commit05be1cc717b4b35e0a78806330a7deaee89663e3 (patch)
treebbdb69534873f9504030a671cc541dc4684e1000
parenta0edb50552090341760c9dfcf27a71df8100e1a5 (diff)
downloadsamba-05be1cc717b4b35e0a78806330a7deaee89663e3.tar.gz
samba-05be1cc717b4b35e0a78806330a7deaee89663e3.tar.bz2
samba-05be1cc717b4b35e0a78806330a7deaee89663e3.zip
s4:mkproto: Add NET_API_STATUS return type.
The recently added LIBNETAPI torture tests use NET_API_STATUS as a return type for some functions. The torture/libnetapi/proto.h private header that was being generated by mkproto.pl did not include a prototype for the test_netuseradd() function, as it did not know how to handle the NET_API_STATUS return type.
-rwxr-xr-xsource4/script/mkproto.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl
index e1b790d41d..59307881c4 100755
--- a/source4/script/mkproto.pl
+++ b/source4/script/mkproto.pl
@@ -206,7 +206,7 @@ sub process_file($$$)
void|bool|int|struct|char|const|\w+_[tT]\s|uint|unsigned|long|NTSTATUS|
ADS_STATUS|enum\s.*\(|DATA_BLOB|WERROR|XFILE|FILE|DIR|
double|TDB_CONTEXT|TDB_DATA|TALLOC_CTX|NTTIME|FN_|init_module|
- GtkWidget|GType|smb_ucs2_t|krb5_error_code)
+ GtkWidget|GType|smb_ucs2_t|krb5_error_code|NET_API_STATUS)
/xo);
next if ($line =~ /^int\s*main/);