lib/, tests/: addsl2(): Rename addsl() to addsl2()
This is for consistency with addsl3(), and in preparation for the following commit, which will unify the interface into a single addsl() macro. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
1356b14a00
commit
2e5fc4c90b
+1
-1
@@ -7,7 +7,7 @@
|
||||
#include "adds.h"
|
||||
|
||||
|
||||
extern inline long addsl(long a, long b);
|
||||
extern inline long addsl2(long a, long b);
|
||||
extern inline long addsl3(long a, long b, long c);
|
||||
|
||||
extern inline int cmpl(const void *p1, const void *p2);
|
||||
|
||||
+2
-2
@@ -15,14 +15,14 @@
|
||||
#include "sizeof.h"
|
||||
|
||||
|
||||
inline long addsl(long a, long b);
|
||||
inline long addsl2(long a, long b);
|
||||
inline long addsl3(long a, long b, long c);
|
||||
|
||||
inline int cmpl(const void *p1, const void *p2);
|
||||
|
||||
|
||||
inline long
|
||||
addsl(long a, long b)
|
||||
addsl2(long a, long b)
|
||||
{
|
||||
if (a > 0 && b > LONG_MAX - a) {
|
||||
errno = EOVERFLOW;
|
||||
|
||||
Reference in New Issue
Block a user