namesys: Fixed ErrNamesys error.

xethyrion-master
Jose Marcial Vieira Bisneto 2016-11-24 19:49:26 -03:00
parent ef2f112f6a
commit b1d5440303
2 changed files with 16 additions and 11 deletions

View File

@ -3,17 +3,21 @@
#define DefaultDepthLimit 32 #define DefaultDepthLimit 32
char *ErrNamesys[] = { #ifdef NAMESYS_C
NULL, char *ErrNamesys[] = {
"ErrAllocFailed", NULL,
"ErrNULLPointer", "ErrAllocFailed",
"Could not publish name." "ErrNULLPointer",
"Could not resolve name.", "Could not publish name."
"Could not resolve name (recursion limit exceeded).", "Could not resolve name.",
"expired record", "Could not resolve name (recursion limit exceeded).",
"unrecognized validity type", "expired record",
"not a valid proquint string" "unrecognized validity type",
}; "not a valid proquint string"
};
#else
extern char *ErrNamesys;
#endif // NAMESYS_C
enum { enum {
ErrAllocFailed = 1, ErrAllocFailed = 1,

View File

@ -3,6 +3,7 @@
#include <time.h> #include <time.h>
#include "ipfs/cid/cid.h" #include "ipfs/cid/cid.h"
#include "ipfs/path/path.h" #include "ipfs/path/path.h"
#define NAMESYS_C
#include "ipfs/namesys/namesys.h" #include "ipfs/namesys/namesys.h"
/* mpns (a multi-protocol NameSystem) implements generic IPFS naming. /* mpns (a multi-protocol NameSystem) implements generic IPFS naming.