Changeset: 9abe146e8202 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9abe146e8202
Modified Files:
gdk/gdk_system_private.h
gdk/gdk_utils.c
monetdb5/mal/mal_client.h
monetdb5/mal/mal_exception.c
Branch: Dec2025
Log Message:
A little cleanup.
diffs (46 lines):
diff --git a/gdk/gdk_system_private.h b/gdk/gdk_system_private.h
--- a/gdk/gdk_system_private.h
+++ b/gdk/gdk_system_private.h
@@ -70,5 +70,5 @@ struct allocator {
exception_buffer eb;
MT_Lock lock; /* lock for thread-safe allocations */
bool use_lock;
- char name [MT_NAME_LEN]; /* Name (only for display!) */
+ char name[MT_NAME_LEN]; /* Name (only for display!) */
};
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -2092,7 +2092,7 @@ ma_alloc(allocator *sa, size_t sz)
{
assert(sa);
size_t nsize = sz + MA_HEADER_SIZE;
- char* r = (char*) _ma_alloc_internal(sa, nsize);
+ char *r = _ma_alloc_internal(sa, nsize);
return ma_fill_in_header(r, sz);
}
diff --git a/monetdb5/mal/mal_client.h b/monetdb5/mal/mal_client.h
--- a/monetdb5/mal/mal_client.h
+++ b/monetdb5/mal/mal_client.h
@@ -148,7 +148,7 @@ typedef struct CLIENT {
*/
MT_Sema s; /* sema to (de)activate
thread */
const char *mythread;
- str errbuf; /* location of GDK
exceptions */
+ char *errbuf; /* location of GDK
exceptions */
struct CLIENT *father;
/*
* Each client has a private entry point into the namespace and
diff --git a/monetdb5/mal/mal_exception.c b/monetdb5/mal/mal_exception.c
--- a/monetdb5/mal/mal_exception.c
+++ b/monetdb5/mal/mal_exception.c
@@ -48,7 +48,7 @@ isExceptionVariable(const char *nme)
return false;
}
-static char *M5OutOfMemory = MAL_MALLOC_FAIL;
+static char M5OutOfMemory[] = MAL_MALLOC_FAIL;
char *
concatErrors(allocator *ma, char *err1, const char *err2)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]