procs.c (45ea00ee87c4f4d4ab514afed0178544b85d74f1) | procs.c (422e293c7f933ae77a55a66891f64d8a041049b7) |
---|---|
1/* 2 * Copyright (c) 1995 3 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 395 unchanged lines hidden (view full) --- 404 cli = clnt_create(lp->notifyHost, lp->notifyProg, lp->notifyVers, "udp"); 405 if (!cli) 406 { 407 syslog(LOG_ERR, "Failed to contact host %s%s", lp->notifyHost, 408 clnt_spcreateerror("")); 409 } 410 else 411 { | 1/* 2 * Copyright (c) 1995 3 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 395 unchanged lines hidden (view full) --- 404 cli = clnt_create(lp->notifyHost, lp->notifyProg, lp->notifyVers, "udp"); 405 if (!cli) 406 { 407 syslog(LOG_ERR, "Failed to contact host %s%s", lp->notifyHost, 408 clnt_spcreateerror("")); 409 } 410 else 411 { |
412 if (clnt_call(cli, lp->notifyProc, xdr_sm_status, &tx_arg, xdr_void, 413 &dummy, timeout) != RPC_SUCCESS) | 412 if (clnt_call(cli, lp->notifyProc, (xdrproc_t)xdr_sm_status, &tx_arg, 413 (xdrproc_t)xdr_void, &dummy, timeout) != RPC_SUCCESS) |
414 { 415 syslog(LOG_ERR, "Failed to call rpc.statd client at host %s", 416 lp->notifyHost); 417 } 418 clnt_destroy(cli); 419 } 420 lp = lp->next; 421 } 422 423 exit (0); /* Child quits */ 424} | 414 { 415 syslog(LOG_ERR, "Failed to call rpc.statd client at host %s", 416 lp->notifyHost); 417 } 418 clnt_destroy(cli); 419 } 420 lp = lp->next; 421 } 422 423 exit (0); /* Child quits */ 424} |