[pacman-dev] [PATCH] run_chroot: label pipe endpoints for readability

Allan McRae allan at archlinux.org
Sun Apr 16 11:31:51 UTC 2017


On 16/04/17 08:15, Andrew Gregory wrote:
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
>  lib/libalpm/util.c | 27 +++++++++++++++------------
>  1 file changed, 15 insertions(+), 12 deletions(-)
> 
> diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
> index 58efa5c7..36d8a7d7 100644
> --- a/lib/libalpm/util.c
> +++ b/lib/libalpm/util.c
> @@ -573,6 +573,9 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
>  	int cwdfd;
>  	int retval = 0;
>  
> +#define HEAD 1
> +#define TAIL 0
> +

Can we undef these once done - or give them a more detailed name?  I see
potential conflicts.

A


More information about the pacman-dev mailing list