X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=error.h;h=b37ba781936a5bb7fadc9be7c6e022bb21ae77ad;hp=9849916c13446fb05da69f6c7b7ddada2fe0dae3;hb=ce0adfac23ad42e907118cb1dd1d91ad16a9ef33;hpb=3d29aa18911043879fcd4412fa25b0ab5f5e95bb diff --git a/error.h b/error.h index 9849916..b37ba78 100644 --- a/error.h +++ b/error.h @@ -75,25 +75,7 @@ extern int osl_errno; /** Contains the description of all adu error codes. */ extern char *adu_errlist[]; - -/** - * adu's version of strerror(3). - * - * \param num The error number. - * - * \return The error text of \a num. - */ -_static_inline_ const char *adu_strerror(int num) -{ - assert(num > 0); - if (num == E_OSL) { - assert(osl_errno > 0); - return osl_strerror((osl_errno)); - } - if (IS_SYSTEM_ERROR(num)) - return strerror((num) & ((1 << SYSTEM_ERROR_BIT) - 1)); - return adu_errlist[num]; -} +extern const char *adu_strerror(int num); /** * Wrapper for osl library calls.