aboutsummaryrefslogtreecommitdiff
path: root/nis/nis_clone_obj.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-11-15 22:00:25 +0000
committerUlrich Drepper <drepper@redhat.com>2004-11-15 22:00:25 +0000
commitf895670da2fd403aed20dcbe156eaa6e75171fbb (patch)
tree1ec0f23b56eb428736327fa5f2125b2c151a290f /nis/nis_clone_obj.c
parent4f27c49622ee24022f567c23ce0366cc01e14283 (diff)
downloadglibc-f895670da2fd403aed20dcbe156eaa6e75171fbb.zip
glibc-f895670da2fd403aed20dcbe156eaa6e75171fbb.tar.gz
glibc-f895670da2fd403aed20dcbe156eaa6e75171fbb.tar.bz2
2004-11-15 Jakub Jelinek <jakub@redhat.com> * posix/bug-regex24.c: Include string.h. * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2 and out2 to out. Remove out label. Formatting. 2004-11-15 Ulrich Drepper <drepper@redhat.com> * include/stdio.h: Do not mark __libc_message as noreturn. * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to fool gcc. Include <stdbool.h>. * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc. (__libc_message): Fix typo.
Diffstat (limited to 'nis/nis_clone_obj.c')
-rw-r--r--nis/nis_clone_obj.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/nis/nis_clone_obj.c b/nis/nis_clone_obj.c
index 5f9dd34..0b163fe 100644
--- a/nis/nis_clone_obj.c
+++ b/nis/nis_clone_obj.c
@@ -41,27 +41,26 @@ nis_clone_object (const nis_object *src, nis_object *dest)
if (dest == NULL)
{
if ((res = calloc (1, sizeof (nis_object))) == NULL)
- goto out2;
+ goto out;
}
else
res = dest;
xdrmem_create (&xdrs, addr, size, XDR_ENCODE);
- if (!_xdr_nis_object (&xdrs, (nis_object *)src))
- goto out3;
+ if (!_xdr_nis_object (&xdrs, (nis_object *) src))
+ goto out2;
xdr_destroy (&xdrs);
xdrmem_create (&xdrs, addr, size, XDR_DECODE);
if (!_xdr_nis_object (&xdrs, res))
{
- out3:
+ out2:
if (dest == NULL)
free (res);
res = NULL;
}
- out:
xdr_destroy (&xdrs);
- out2:
+ out:
free (addr);
return res;