Changeset: e6edaf01dfe0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e6edaf01dfe0
Modified Files:
        monetdb5/mal/mal_namespace.c
Branch: default
Log Message:

A little cleanup.


diffs (49 lines):

diff --git a/monetdb5/mal/mal_namespace.c b/monetdb5/mal/mal_namespace.c
--- a/monetdb5/mal/mal_namespace.c
+++ b/monetdb5/mal/mal_namespace.c
@@ -74,7 +74,7 @@ void mal_namespace_reset(void) {
  * is conflict free.
  */
 
-static str findName(const char *nme, size_t len, int allocate)
+static str findName(const char *nme, size_t len, bool allocate)
 {
        NamePtr *n, m;
        size_t key;
@@ -120,7 +120,7 @@ static str findName(const char *nme, siz
                struct namespace *ns = GDKmalloc(sizeof(struct namespace));
                if (ns == NULL) {
                        /* error we cannot recover from */
-                       TRC_CRITICAL(MAL_SERVER, SQLSTATE(HY013) 
MAL_MALLOC_FAIL "\n");
+                       TRC_CRITICAL(MAL_SERVER, MAL_MALLOC_FAIL "\n");
                        mal_exit(1);
                }
                ns->next = namespace;
@@ -138,12 +138,12 @@ static str findName(const char *nme, siz
 }
 
 str getName(const char *nme) {
-       return findName(nme, strlen(nme), 0);
+       return findName(nme, strlen(nme), false);
 }
 
 str getNameLen(const char *nme, size_t len)
 {
-       return findName(nme, len, 0);
+       return findName(nme, len, false);
 }
 /*
  * Name deletion from the namespace is tricky, because there may
@@ -162,10 +162,10 @@ void delName(const char *nme, size_t len
 }
 
 str putName(const char *nme) {
-       return findName(nme, strlen(nme), 1);
+       return findName(nme, strlen(nme), true);
 }
 
 str putNameLen(const char *nme, size_t len)
 {
-       return findName(nme, len, 1);
+       return findName(nme, len, true);
 }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to