memory: remove semicolons from macros
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2009 00:48:58 +0000 (02:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 May 2009 18:30:15 +0000 (20:30 +0200)
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.

dbus/dbus-memory.h

index 6aab4e2..11b9225 100644 (file)
@@ -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);