Skip to content

Commit a2a28a4

Browse files
committed
rename endian check function
1 parent a71abe5 commit a2a28a4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

sigprintf_conv.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
#include "sigstring.h"
66
#include "sigprintf_conv.h"
77

8-
#define SIGPRINTF_LITTLE_ENDIAN 1
9-
108
static int
11-
endian_test(void)
9+
is_little_endian(void)
1210
{
1311
int i = 1;
1412
char *c = (char *)&i;
@@ -106,7 +104,7 @@ sigptoa(char *b, void *p)
106104
b[0] = '0';
107105
b[1] = 'x';
108106

109-
if (endian_test() == SIGPRINTF_LITTLE_ENDIAN)
107+
if (is_little_endian() == 1)
110108
{
111109
for (i = plen - 1, w = 2; i >= 0; i--)
112110
{

0 commit comments

Comments
 (0)