[PATCH] mkpasswd.c - Central error reporting
Corinna Vinschen
cygwin-patches@cygwin.com
Tue Jan 15 05:13:00 GMT 2002
On Sat, Jan 12, 2002 at 01:36:59PM -0500, Mark Bradshaw wrote:
> Attempt #2. As per your request, all network error reporting is centralized
> in a single function I called print_win_error. It gets an error code passed
> to it. If it can manage to get a text message to go along with the code it
> will print an error in the form:
> mkpasswd [error #]: error text
Applied with two minor tweaks:
- Use %lu instead of %d format to avoid compiler warnings.
- Format is "mkpasswd: [%lu] %s" instead of "mkpasswd [%lu]: %s".
Thanks for the patch,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
More information about the Cygwin-patches
mailing list