From: Richard Basch Date: Sun, 16 Feb 1997 03:52:34 +0000 (+0000) Subject: Checked in a debugging version, by accident. X-Git-Tag: krb5-1.1-beta1~1315 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e70ea98982c3a1d8417d2fc952dbcdcc62f44ee8;p=krb5.git Checked in a debugging version, by accident. FormatMessage() is only available under Win32; some code needed rearranging git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9876 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index 8adc30fa3..024140936 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -94,6 +94,17 @@ KRB5_DLLIMP const char FAR * KRB5_CALLCONV error_message(code) } #if defined(_MSDOS) || defined(_WIN32) + /* + * WinSock errors exist in the 10000 and 11000 ranges + * but might not appear if WinSock is not initialized + */ + if (code < 12000) { + table_num = 0; + offset = code; + divisor = 10000; + } +#endif +#ifdef _WIN32 { LPVOID msgbuf; @@ -140,7 +151,6 @@ oops: *cp++ = ' '; } while (divisor > 1) { - fprintf(stderr, "divisor %d, offset %d\n", divisor, offset); if (started || offset >= divisor) { *cp++ = '0' + offset / divisor; offset %= divisor; @@ -148,7 +158,6 @@ oops: } divisor /= 10; } - fprintf(stderr, "divisor %d, offset %d\n", divisor, offset); *cp++ = '0' + offset; *cp = '\0'; return(buffer);