X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=error.h;h=ade1a8ec25ea40a0c5a9a96ee622fbfcc7583ff2;hp=9e910e2b2236bb9dae79b1d1df36ea0cb5a27b3a;hb=2b4f4c85be13bb26a230df6669a7138d123c1a7d;hpb=44c1bec753339f5cddcc34c4419505ec928cf88a diff --git a/error.h b/error.h index 9e910e2..ade1a8e 100644 --- a/error.h +++ b/error.h @@ -21,20 +21,6 @@ __printf_2_3 void dss_log(int ll, const char* fmt,...); /** Set the system error bit for the given number. */ #define ERRNO_TO_DSS_ERROR(num) ((num) | (1 << SYSTEM_ERROR_BIT)) -/** Check whether a given number is a system error number. - * - * \param num The value to be checked. - * \param _errno The system error number. - * - * \return True if \a num is dss' representation of the system - * error identified by \a _errno. - */ -static inline int is_errno(int num, int _errno) -{ - assert(num > 0 && _errno > 0); - return ERRNO_TO_DSS_ERROR(_errno) == num; -} - /** * dss' version of strerror(3). *