~ubuntu-branches/ubuntu/oneiric/nis/oneiric-proposed

« back to all changes in this revision

Viewing changes to ypserv-2.18/lib/ypproc_match_2.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2005-11-16 23:42:06 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051116234206-p00omaw5ji5q0qhr
Tags: 3.15-3ubuntu1
Resynchronise with Debian.  (me)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2000 Thorsten Kukuk
 
2
   Author: Thorsten Kukuk <kukuk@suse.de>
 
3
 
 
4
   The YP Server is free software; you can redistribute it and/or
 
5
   modify it under the terms of the GNU General Public License
 
6
   version 2 as published by the Free Software Foundation.
 
7
 
 
8
   The YP Server is distributed in the hope that it will be useful,
 
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
11
   General Public License for more details.
 
12
 
 
13
   You should have received a copy of the GNU General Public
 
14
   License along with the YP Server; see the file COPYING. If
 
15
   not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 
16
   Cambridge, MA 02139, USA. */
 
17
 
 
18
#ifdef HAVE_CONFIG_H
 
19
#include "config.h"
 
20
#endif
 
21
 
 
22
#define _GNU_SOURCE
 
23
 
 
24
#include "yp.h"
 
25
 
 
26
/* Default timeout can be changed using clnt_control() */
 
27
static struct timeval TIMEOUT = { 25, 0 };
 
28
 
 
29
enum clnt_stat
 
30
ypproc_match_2 (ypreq_key *argp, ypresp_val *clnt_res, CLIENT *clnt)
 
31
{
 
32
  return (clnt_call(clnt, YPPROC_MATCH,
 
33
                    (xdrproc_t) xdr_ypreq_key, (caddr_t) argp,
 
34
                    (xdrproc_t) xdr_ypresp_val, (caddr_t) clnt_res,
 
35
                    TIMEOUT));
 
36
}