X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=error.h;h=010af4559bcb9b0a4e3ca5f329dd35629be762a7;hp=9849916c13446fb05da69f6c7b7ddada2fe0dae3;hb=0ce992a299e8b69a41cb2fb748bd19aee1fe323b;hpb=2d7a4d61bfa10e3f462053936dcf7fd416b629d0 diff --git a/error.h b/error.h index 9849916..010af45 100644 --- a/error.h +++ b/error.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Andre Noll + * Copyright (C) 2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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.