Update.
[glibc.git] / nis / nis_free.c
blob5d08882f8454fde0e82c5e59b4f63fc28aafbe61
1 /* Copyright (c) 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #include <rpcsvc/nis.h>
22 void
23 __free_fdresult (fd_result *res)
25 if (res != NULL)
27 xdr_free ((xdrproc_t)xdr_fd_result, (char *)res);
28 free (res);
32 void
33 nis_free_request (ib_request *ibreq)
35 if (ibreq != NULL)
37 xdr_free ((xdrproc_t)xdr_ib_request, (char *)ibreq);
38 free (ibreq);
42 void
43 nis_free_directory (directory_obj *obj)
45 if (obj != NULL)
47 xdr_free ((xdrproc_t)xdr_directory_obj, (char *)obj);
48 free (obj);
52 void
53 nis_free_object (nis_object *obj)
55 if (obj != NULL)
57 xdr_free ((xdrproc_t)xdr_nis_object, (char *)obj);
58 free (obj);
62 void
63 nis_freeresult (nis_result *res)
65 if (res != NULL)
67 xdr_free ((xdrproc_t)xdr_nis_result, (char *)res);
68 free (res);