svn commit: r283838 - head/usr.sbin/yppush
Craig Rodrigues
rodrigc at FreeBSD.org
Sun May 31 20:45:36 UTC 2015
Author: rodrigc
Date: Sun May 31 20:45:35 2015
New Revision: 283838
URL: https://svnweb.freebsd.org/changeset/base/283838
Log:
Fix some gcc compiler warnings.
Submitted by: Sascha Wildner <swildner at dragonflybsd.org>
Obtained from: DragonFlyBSD (commit 51798e10f3dd)
Modified:
head/usr.sbin/yppush/yppush_main.c
Modified: head/usr.sbin/yppush/yppush_main.c
==============================================================================
--- head/usr.sbin/yppush/yppush_main.c Sun May 31 20:20:24 2015 (r283837)
+++ head/usr.sbin/yppush/yppush_main.c Sun May 31 20:45:35 2015 (r283838)
@@ -137,11 +137,11 @@ yppush_show_status(ypxfrstat status, uns
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, unsigne
* 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)
{
More information about the svn-src-all
mailing list