From fb0e8a6fa561cd2a518b6a65f50e8179a19985cc Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 16 Jan 2022 10:41:49 +0100 Subject: feat: überflüssig Klammern bei sizeof-Operator entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'queue.c') diff --git a/queue.c b/queue.c index 8533691..6a472ee 100644 --- a/queue.c +++ b/queue.c @@ -33,7 +33,7 @@ queue_put(struct queue *queue, T data) { struct queue_item *new_item; - if ( (new_item = malloc(sizeof(*new_item))) != NULL ) { + if ( (new_item = malloc(sizeof *new_item)) != NULL ) { struct queue_item *tmp = queue->tail; new_item->data = data; new_item->next = NULL; -- cgit v1.3