[systemd-devel] Patch: fix typo in newdup

Lennart Poettering lennart at poettering.net
Mon May 21 09:19:19 PDT 2012


On Mon, 21.05.12 18:16, Frederic Crozat (fcrozat at suse.com) wrote:

Thanks, applied!

> >From 5944312f891658446edea08e6907dff05daebdec Mon Sep 17 00:00:00 2001
> From: Frederic Crozat <fcrozat at suse.com>
> Date: Mon, 21 May 2012 16:53:18 +0200
> Subject: [PATCH] util: fix typo in newdup
> 
> ---
>  src/shared/util.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/shared/util.h b/src/shared/util.h
> index 3dce047..33a7e7c 100644
> --- a/src/shared/util.h
> +++ b/src/shared/util.h
> @@ -103,7 +103,7 @@ bool streq_ptr(const char *a, const char *b);
>  
>  #define newa(t, n) ((t*) alloca(sizeof(t)*(n)))
>  
> -#define newdup(t, p, n) ((t*) memdup(p, sizeof(t)*(n))
> +#define newdup(t, p, n) ((t*) memdup(p, sizeof(t)*(n)))
>  
>  #define malloc0(n) (calloc((n), 1))
>  

> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list