This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] mkpasswd.c - Central error reporting


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]