diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-03 08:50:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-03 08:50:59 +0000 |
commit | fd6ea431617d91c5f5c6b07cb26910f4900c1515 (patch) | |
tree | f079e0acc8629c45bf049f5bd58fe5b10e4b3d03 /source3/libsmb | |
parent | 95739423d0116074a16b7b1c6b389ca2bbe34c7c (diff) | |
download | samba-fd6ea431617d91c5f5c6b07cb26910f4900c1515.tar.gz samba-fd6ea431617d91c5f5c6b07cb26910f4900c1515.tar.bz2 samba-fd6ea431617d91c5f5c6b07cb26910f4900c1515.zip |
the next step in our error code handling change
- added WERROR for win32 error codes
- added a configure test for immediate structures
still lots to do, so its not enabled by default, but the main
structure is there
(This used to be commit 24f9ab683dec52587ee56717e821b49c0fa3d70f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smberr.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c index 9648786ea5..e6ecfefb34 100644 --- a/source3/libsmb/smberr.c +++ b/source3/libsmb/smberr.c @@ -182,3 +182,14 @@ char *smb_errstr(char *inbuf) slprintf(ret, sizeof(ret) - 1, "Error: Unknown error (%d,%d)",class,num); return(ret); } + + +/***************************************************************************** + returns an WERROR error message. + *****************************************************************************/ +char *werror_str(WERROR status) +{ + static fstring msg; + slprintf(msg, sizeof(msg), "WIN32 code 0x%08x", W_ERROR_V(status)); + return msg; +} |