From: Lennart Poettering Date: Wed, 22 Apr 2009 00:48:58 +0000 (+0200) Subject: memory: remove semicolons from macros X-Git-Tag: dbus-1.3.0~4^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d2eacba89328029891ffe774ce37df44387cfbb;p=platform%2Fupstream%2Fdbus.git memory: remove semicolons from macros Due to some unknown reasons the dbus_new() macros had a semicolon at the end which makes it impossible to use them in some situations. --- diff --git a/dbus/dbus-memory.h b/dbus/dbus-memory.h index 6aab4e2..11b9225 100644 --- a/dbus/dbus-memory.h +++ b/dbus/dbus-memory.h @@ -43,8 +43,8 @@ void* dbus_realloc (void *memory, size_t bytes); void dbus_free (void *memory); -#define dbus_new(type, count) ((type*)dbus_malloc (sizeof (type) * (count))); -#define dbus_new0(type, count) ((type*)dbus_malloc0 (sizeof (type) * (count))); +#define dbus_new(type, count) ((type*)dbus_malloc (sizeof (type) * (count))) +#define dbus_new0(type, count) ((type*)dbus_malloc0 (sizeof (type) * (count))) void dbus_free_string_array (char **str_array);