X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d8eb62b207b566949a0d9ce649a7b21e226b9168..ea74f5d95928a521a588737e81f1de94eef25d19:/src/xbt/mmalloc/swag.c diff --git a/src/xbt/mmalloc/swag.c b/src/xbt/mmalloc/swag.c index 1df21d0375..a3cdcb982d 100644 --- a/src/xbt/mmalloc/swag.c +++ b/src/xbt/mmalloc/swag.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2018. The SimGrid Team. +/* Copyright (c) 2004-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -23,7 +23,7 @@ typedef const struct xbt_swag* const_xbt_swag_t; static inline void *xbt_swag_getFirst(const_xbt_swag_t swag) { - return (swag->head); + return swag->head; } /* @@ -55,7 +55,7 @@ static inline void xbt_swag_init(xbt_swag_t swag, size_t offset) } /* - * @param obj the objet to insert in the swag + * @param obj the object to insert in the swag * @param swag a swag * * insert (at the tail... you probably had a very good reason to do that, I hope you know what you're doing) @a obj in @@ -80,7 +80,7 @@ static inline void xbt_swag_insert(void *obj, xbt_swag_t swag) } /* - * @param obj the objet to remove from the swag + * @param obj the object to remove from the swag * @param swag a swag * @return @a obj if it was in the @a swag and NULL otherwise * @@ -124,5 +124,5 @@ static inline void *xbt_swag_remove(void *obj, xbt_swag_t swag) */ static inline int xbt_swag_size(const_xbt_swag_t swag) { - return (swag->count); + return swag->count; }