Commit e2a44b06 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Revert needless conversion to extern.

parent d7cfcef4
......@@ -420,13 +420,6 @@ double cdiInqMissval(void)
return (cdiDefaultMissval);
}
int cdiUUIDIsNull(const unsigned char* uuid)
{
static const unsigned char uuid_nil[CDI_UUID_SIZE];
return !memcmp(uuid, uuid_nil, CDI_UUID_SIZE);
}
/*
* Local Variables:
* c-file-style: "Java"
......
......@@ -13,6 +13,8 @@
#include <math.h>
#include <sys/types.h>
#include "cdi.h"
/* dummy use of unused parameters to silence compiler warnings */
#define UNUSED(x) (void)x
......@@ -368,7 +370,14 @@ void cdiInitialize(void);
void uuid2str(const unsigned char *uuid, char *uuidstr);
int str2uuid(const char *uuidstr, unsigned char *uuid);
int cdiUUIDIsNull(const unsigned char *uuid);
static inline int cdiUUIDIsNull(const unsigned char *uuid)
{
int isNull = 1;
for (size_t i = 0; i < CDI_UUID_SIZE; ++i)
isNull &= (uuid[i] == 0);
return isNull;
}
char* cdiEscapeSpaces(const char* string);
char* cdiUnescapeSpaces(const char* string, const char** outStringEnd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment