file.c (bf117eda42d7344d01a82d28aa0a3340e23825e3) | file.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 --- 225 unchanged lines hidden (view full) --- 234 cli = clnt_create(hostname, SM_PROG, SM_VERS, "udp"); 235 if (!cli) 236 { 237 syslog(LOG_ERR, "Failed to contact host %s%s", hostname, 238 clnt_spcreateerror("")); 239 return (FALSE); 240 } 241 | 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 --- 225 unchanged lines hidden (view full) --- 234 cli = clnt_create(hostname, SM_PROG, SM_VERS, "udp"); 235 if (!cli) 236 { 237 syslog(LOG_ERR, "Failed to contact host %s%s", hostname, 238 clnt_spcreateerror("")); 239 return (FALSE); 240 } 241 |
242 if (clnt_call(cli, SM_NOTIFY, xdr_stat_chge, &arg, xdr_void, &dummy, timeout) | 242 if (clnt_call(cli, SM_NOTIFY, (xdrproc_t)xdr_stat_chge, &arg, 243 (xdrproc_t)xdr_void, &dummy, timeout) |
243 != RPC_SUCCESS) 244 { 245 syslog(LOG_ERR, "Failed to contact rpc.statd at host %s", hostname); 246 clnt_destroy(cli); 247 return (FALSE); 248 } 249 250 clnt_destroy(cli); --- 80 unchanged lines hidden --- | 244 != RPC_SUCCESS) 245 { 246 syslog(LOG_ERR, "Failed to contact rpc.statd at host %s", hostname); 247 clnt_destroy(cli); 248 return (FALSE); 249 } 250 251 clnt_destroy(cli); --- 80 unchanged lines hidden --- |