At 1230571696 time_t, Roland Kammerer wrote:
> Using warn("foo %s", strerror(errno)); does not make sense because it
> produces error messages
> twice.
> From "man warn":
> The err(), verr(), warn(), and vwarn() functions append an error
> message obtained from strerror(3) based on a code or the
> global variable errno, preceded by another colon and space unless the
> fmt argument is NULL.Unfortunately warn() is a macro defined in common/util.h. So this has real sense. However, I did not know there was a warn() function already defined, so you at least teach me something. :) Cheers, -- Julien Danjou // ᐰ <[email protected]> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
signature.asc
Description: Digital signature
