X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fsimulate.c;h=4b8d59cad042b9dbf0d68788e047217eab7419c7;hp=3bebfc795a8d06ba6a6ea4b638f5b16394c5d6c8;hb=b63400dcb05eee79666bade57558279fd15f0318;hpb=919f0cf78ab9d180fb11beb9c8d6c9dcefa6df9a diff --git a/utils/statd/simulate.c b/utils/statd/simulate.c index 3bebfc7..4b8d59c 100644 --- a/utils/statd/simulate.c +++ b/utils/statd/simulate.c @@ -18,7 +18,6 @@ #include #include #include -#include #include "statd.h" #include "sim_sm_inter.h" @@ -208,8 +207,8 @@ daemon_simulator (void) signal (SIGINT, sim_killer); signal (SIGTERM, sim_killer); pmap_unset (sim_port, SIM_SM_VERS); - /* this registers both UDP and TCP services */ - rpc_init("statd", sim_port, SIM_SM_VERS, sim_sm_prog_1, 0); + do_regist (sim_port, sim_sm_prog_1); +/* do_regist (sim_port, (__dispatch_fn_t)sim_sm_prog_1); */ svc_run (); pmap_unset (sim_port, SIM_SM_VERS); }