Deleted Added
full compact
lock_proc.c (114993) lock_proc.c (121558)
1/* $NetBSD: lock_proc.c,v 1.7 2000/10/11 20:23:56 is Exp $ */
1/* $NetBSD: lock_proc.c,v 1.7 2000/10/11 20:23:56 is Exp $ */
2/* $FreeBSD: head/usr.sbin/rpc.lockd/lock_proc.c 114993 2003-05-14 13:50:40Z rwatson $ */
2/* $FreeBSD: head/usr.sbin/rpc.lockd/lock_proc.c 121558 2003-10-26 06:10:44Z peter $ */
3/*
4 * Copyright (c) 1995
5 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 302 unchanged lines hidden (view full) ---

313 CLIENT *cli;
314 struct timeval timeo;
315 int success;
316
317 if ((cli = get_client(addr, NLM_VERS)) != NULL) {
318 timeo.tv_sec = 0; /* No timeout - not expecting response */
319 timeo.tv_usec = 0;
320
3/*
4 * Copyright (c) 1995
5 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 302 unchanged lines hidden (view full) ---

313 CLIENT *cli;
314 struct timeval timeo;
315 int success;
316
317 if ((cli = get_client(addr, NLM_VERS)) != NULL) {
318 timeo.tv_sec = 0; /* No timeout - not expecting response */
319 timeo.tv_usec = 0;
320
321 success = clnt_call(cli, opcode, xdr_nlm_res, result, xdr_void,
322 &dummy, timeo);
321 success = clnt_call(cli, opcode, (xdrproc_t)xdr_nlm_res, result,
322 (xdrproc_t)xdr_void, &dummy, timeo);
323
324 if (debug_level > 2)
325 syslog(LOG_DEBUG, "clnt_call returns %d(%s)",
326 success, clnt_sperrno(success));
327 }
328}
329/* transmit4_result --------------------------------------------------------- */
330/*

--- 13 unchanged lines hidden (view full) ---

344 CLIENT *cli;
345 struct timeval timeo;
346 int success;
347
348 if ((cli = get_client(addr, NLM_VERS4)) != NULL) {
349 timeo.tv_sec = 0; /* No timeout - not expecting response */
350 timeo.tv_usec = 0;
351
323
324 if (debug_level > 2)
325 syslog(LOG_DEBUG, "clnt_call returns %d(%s)",
326 success, clnt_sperrno(success));
327 }
328}
329/* transmit4_result --------------------------------------------------------- */
330/*

--- 13 unchanged lines hidden (view full) ---

344 CLIENT *cli;
345 struct timeval timeo;
346 int success;
347
348 if ((cli = get_client(addr, NLM_VERS4)) != NULL) {
349 timeo.tv_sec = 0; /* No timeout - not expecting response */
350 timeo.tv_usec = 0;
351
352 success = clnt_call(cli, opcode, xdr_nlm4_res, result, xdr_void,
353 &dummy, timeo);
352 success = clnt_call(cli, opcode,
353 (xdrproc_t)xdr_nlm4_res, result,
354 (xdrproc_t)xdr_void, &dummy, timeo);
354
355 if (debug_level > 2)
356 syslog(LOG_DEBUG, "clnt_call returns %d(%s)",
357 success, clnt_sperrno(success));
358 }
359}
360
361/*

--- 112 unchanged lines hidden (view full) ---

474 * nlm_test has different result type to the other operations, so
475 * can't use transmit_result() in this case
476 */
477 addr = svc_getrpccaller(rqstp->rq_xprt)->buf;
478 if ((cli = get_client(addr, NLM_VERS)) != NULL) {
479 timeo.tv_sec = 0; /* No timeout - not expecting response */
480 timeo.tv_usec = 0;
481
355
356 if (debug_level > 2)
357 syslog(LOG_DEBUG, "clnt_call returns %d(%s)",
358 success, clnt_sperrno(success));
359 }
360}
361
362/*

--- 112 unchanged lines hidden (view full) ---

475 * nlm_test has different result type to the other operations, so
476 * can't use transmit_result() in this case
477 */
478 addr = svc_getrpccaller(rqstp->rq_xprt)->buf;
479 if ((cli = get_client(addr, NLM_VERS)) != NULL) {
480 timeo.tv_sec = 0; /* No timeout - not expecting response */
481 timeo.tv_usec = 0;
482
482 success = clnt_call(cli, NLM_TEST_RES, xdr_nlm_testres,
483 &res, xdr_void, &dummy, timeo);
483 success = clnt_call(cli, NLM_TEST_RES,
484 (xdrproc_t)xdr_nlm_testres, &res,
485 (xdrproc_t)xdr_void, &dummy, timeo);
484
485 if (debug_level > 2)
486 syslog(LOG_DEBUG, "clnt_call returns %d", success);
487 }
488 return (NULL);
489}
490
491/* nlm_lock ---------------------------------------------------------------- */

--- 482 unchanged lines hidden (view full) ---

974 * nlm_test has different result type to the other operations, so
975 * can't use transmit4_result() in this case
976 */
977 addr = svc_getrpccaller(rqstp->rq_xprt)->buf;
978 if ((cli = get_client(addr, NLM_VERS4)) != NULL) {
979 timeo.tv_sec = 0; /* No timeout - not expecting response */
980 timeo.tv_usec = 0;
981
486
487 if (debug_level > 2)
488 syslog(LOG_DEBUG, "clnt_call returns %d", success);
489 }
490 return (NULL);
491}
492
493/* nlm_lock ---------------------------------------------------------------- */

--- 482 unchanged lines hidden (view full) ---

976 * nlm_test has different result type to the other operations, so
977 * can't use transmit4_result() in this case
978 */
979 addr = svc_getrpccaller(rqstp->rq_xprt)->buf;
980 if ((cli = get_client(addr, NLM_VERS4)) != NULL) {
981 timeo.tv_sec = 0; /* No timeout - not expecting response */
982 timeo.tv_usec = 0;
983
982 success = clnt_call(cli, NLM4_TEST_RES, xdr_nlm4_testres,
983 &res, xdr_void, &dummy, timeo);
984 success = clnt_call(cli, NLM4_TEST_RES,
985 (xdrproc_t)xdr_nlm4_testres, &res,
986 (xdrproc_t)xdr_void, &dummy, timeo);
984
985 if (debug_level > 2)
986 syslog(LOG_DEBUG, "clnt_call returns %d", success);
987 }
988 return (NULL);
989}
990
991/* nlm_lock ---------------------------------------------------------------- */

--- 403 unchanged lines hidden ---
987
988 if (debug_level > 2)
989 syslog(LOG_DEBUG, "clnt_call returns %d", success);
990 }
991 return (NULL);
992}
993
994/* nlm_lock ---------------------------------------------------------------- */

--- 403 unchanged lines hidden ---