From 81711ef8cd219acd030a873ec4452671daeaaa5a Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 08:06:22 +0000 Subject: 1999-07-11 Thomas Bushnell, BSG * argp.c (store_parsed_open): Add more braces to clarify if-else structure. * encode.c: Include * zero.c: Likewise. * encode.c (store_encode): Repair syntax. * copy.c (copy_read): Likewise. * enc.c (store_enc_dealloc): Cast first arg of munmap correctly. --- libstore/argp.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'libstore/argp.c') diff --git a/libstore/argp.c b/libstore/argp.c index b7636b56..97640e19 100644 --- a/libstore/argp.c +++ b/libstore/argp.c @@ -1,6 +1,6 @@ /* Store argument parsing - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader This file is part of the GNU Hurd. @@ -171,18 +171,20 @@ store_parsed_open (const struct store_parsed *parsed, int flags, { const struct store_class *type = parsed->type; if (type->open) - if (parsed->name_prefix) - /* If there's a name prefix, we prefix any names we open with that - and a colon. */ - { - char pfxed_name[pfx_len + 1 + strlen (name) + 1]; - stpcpy (stpcpy (stpcpy (pfxed_name, parsed->name_prefix), - ":"), - name); - return (*type->open) (pfxed_name, flags, parsed->classes, store); - } - else - return (*type->open) (name, flags, parsed->classes, store); + { + if (parsed->name_prefix) + /* If there's a name prefix, we prefix any names we open with that + and a colon. */ + { + char pfxed_name[pfx_len + 1 + strlen (name) + 1]; + stpcpy (stpcpy (stpcpy (pfxed_name, parsed->name_prefix), + ":"), + name); + return (*type->open) (pfxed_name, flags, parsed->classes, store); + } + else + return (*type->open) (name, flags, parsed->classes, store); + } else return EOPNOTSUPP; } -- cgit v1.2.3