[olsr-dev] [PATCH] Improvements in dot_draw plugin

Bernd Petrovitsch (spam-protected)
Mon Nov 14 23:26:24 CET 2005

On Mon, 2005-11-14 at 22:02 +0100, Thomas Lopatic wrote:
> I'd suggest that we move to the '"%s", strerror(errno)' combination.
> That's what we currently also use for printf()s. Luckily each source
> code file currently requires either GetLastError() or WSAGetLastError()
> but not both at the same time. So, I define "errno" to be one of these
> two functions and "strerror()" to be my substitute function that turns
> an error code into an error message. Have a look at parser.c or
> socket_parser.c as an example of this.

Yes, I stumbled over such #defines.

> If we need GetLastError() and WSAGetLastError() in the same source code
> file one day, we can think of extending our solution to this problem. :-)


Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

More information about the Olsr-dev mailing list