diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-05-31 20:45:35 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-05-31 20:45:35 +0000 |
commit | 35ee6bbaef5dd8b225bf804c746a02cc07e84a7f (patch) | |
tree | e27f814463c2a9dd878ae3d45274b4433fc6fce5 /usr.sbin/yppush/yppush_main.c | |
parent | 4a2ec8401f49a49b34aaa9df1079523bb7fdb9ac (diff) | |
download | src-test2-35ee6bbaef5dd8b225bf804c746a02cc07e84a7f.tar.gz src-test2-35ee6bbaef5dd8b225bf804c746a02cc07e84a7f.zip |
Notes
Diffstat (limited to 'usr.sbin/yppush/yppush_main.c')
-rw-r--r-- | usr.sbin/yppush/yppush_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/yppush/yppush_main.c b/usr.sbin/yppush/yppush_main.c index df1dbe4cc6db..6c665158c4ad 100644 --- a/usr.sbin/yppush/yppush_main.c +++ b/usr.sbin/yppush/yppush_main.c @@ -137,11 +137,11 @@ yppush_show_status(ypxfrstat status, unsigned long tid) job->tid); } - if (status != YPPUSH_SUCC || verbose) { + if (status != YPXFR_SUCC || verbose) { yp_error("transfer of map %s to server %s %s", - job->map, job->server, status == YPPUSH_SUCC ? + job->map, job->server, status == YPXFR_SUCC ? "succeeded" : "failed"); - yp_error("status returned by ypxfr: %s", status > YPPUSH_AGE ? + yp_error("status returned by ypxfr: %s", status > YPXFR_AGE ? yppusherr_string(status) : ypxfrerr_string(status)); } @@ -365,7 +365,7 @@ create udp handle to NIS server")); * request to the internal list, send the YPPROC_XFR request to ypserv * do other magic things. */ -int +static int yp_push(char *server, char *map, unsigned long tid) { unsigned long prognum; @@ -433,7 +433,7 @@ yp_push(char *server, char *map, unsigned long tid) * Called for each entry in the ypservers map from yp_get_map(), which * is our private yp_all() routine. */ -int +static int yppush_foreach(int status, char *key, int keylen, char *val, int vallen, char *data) { |