--- /tmp/work/old/src/usr.sbin/ypbind/ypbind.c	2010-11-07 19:11:43.000000000 +0200
+++ src/usr.sbin/ypbind/ypbind.c	2010-11-07 19:11:43.000000000 +0200
@@ -129,7 +129,7 @@
 static struct _dom_binding *makebinding(const char *);
 static int makelock(struct _dom_binding *);
 static void removelock(struct _dom_binding *);
-static int purge_bindingdir(char *);
+static int purge_bindingdir(const char *);
 static void *ypbindproc_null_2(SVCXPRT *, void *);
 static void *ypbindproc_domain_2(SVCXPRT *, void *);
 static void *ypbindproc_setdom_2(SVCXPRT *, void *);
@@ -223,7 +223,7 @@
 }
 
 /*
- * purge_bindingdir: remove old binding files (i.e. "rm BINDINGDIR/*.[0-9]")
+ * purge_bindingdir: remove old binding files (i.e. "rm BINDINGDIR\/\*.[0-9]")
  *
  * local YP functions [e.g. yp_master()] will fail without even talking
  * to ypbind if there is a stale (non-flock'd) binding file present.
@@ -231,7 +231,8 @@
  * ypbind may bind more than just the yp_get_default_domain() domain.
  */
 static int
-purge_bindingdir(char *dirpath) {
+purge_bindingdir(const char *dirpath)
+ {
 	DIR *dirp;
 	int unlinkedfiles, l;
 	struct dirent *dp;
