]> sourceware.org Git - glibc.git/blame - nis/nis_free.c
Update.
[glibc.git] / nis / nis_free.c
CommitLineData
91eee4dd 1/* Copyright (c) 1997, 1998 Free Software Foundation, Inc.
e61abf83
UD
2 This file is part of the GNU C Library.
3 Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
4
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.
9
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.
14
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. */
19
20#include <rpcsvc/nis.h>
91eee4dd 21#include "nis_xdr.h"
e61abf83
UD
22
23void
dfd2257a 24__free_fdresult (fd_result *res)
e61abf83 25{
dfd2257a 26 if (res != NULL)
e61abf83 27 {
91eee4dd 28 xdr_free ((xdrproc_t)_xdr_fd_result, (char *)res);
dfd2257a 29 free (res);
e61abf83
UD
30 }
31}
32
33void
34nis_free_request (ib_request *ibreq)
35{
dfd2257a 36 if (ibreq != NULL)
e61abf83 37 {
91eee4dd 38 xdr_free ((xdrproc_t)_xdr_ib_request, (char *)ibreq);
dfd2257a 39 free (ibreq);
e61abf83
UD
40 }
41}
42
43void
44nis_free_directory (directory_obj *obj)
45{
dfd2257a 46 if (obj != NULL)
e61abf83 47 {
91eee4dd 48 xdr_free ((xdrproc_t)_xdr_directory_obj, (char *)obj);
dfd2257a 49 free (obj);
e61abf83
UD
50 }
51}
52
53void
54nis_free_object (nis_object *obj)
55{
dfd2257a 56 if (obj != NULL)
e61abf83 57 {
91eee4dd 58 xdr_free ((xdrproc_t)_xdr_nis_object, (char *)obj);
dfd2257a 59 free (obj);
e61abf83 60 }
e61abf83
UD
61}
62
63void
64nis_freeresult (nis_result *res)
65{
dfd2257a
UD
66 if (res != NULL)
67 {
91eee4dd 68 xdr_free ((xdrproc_t)_xdr_nis_result, (char *)res);
dfd2257a
UD
69 free (res);
70 }
e61abf83 71}
This page took 0.141391 seconds and 5 git commands to generate.