Remove debug code.
Suggested by: des
This commit is contained in:
parent
b1ff02203e
commit
1dd3ff6658
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160804
@ -53,10 +53,4 @@ int ypclnt_connect(ypclnt_t *);
|
|||||||
int ypclnt_havepasswdd(ypclnt_t *);
|
int ypclnt_havepasswdd(ypclnt_t *);
|
||||||
int ypclnt_passwd(ypclnt_t *, const struct passwd *, const char *);
|
int ypclnt_passwd(ypclnt_t *, const struct passwd *, const char *);
|
||||||
|
|
||||||
#if defined(DEBUG) && defined(__GNUC__)
|
|
||||||
#define YPCLNT_DEBUG(fmt...) warnx(__FUNCTION__ ": " fmt, ##fmt)
|
|
||||||
#else
|
|
||||||
#define YPCLNT_DEBUG(...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -64,7 +64,6 @@ ypclnt_connect(ypclnt_t *ypclnt)
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
YPCLNT_DEBUG("domain '%s'", ypclnt->domain);
|
|
||||||
|
|
||||||
/* map must be specified */
|
/* map must be specified */
|
||||||
if (ypclnt->map == NULL) {
|
if (ypclnt->map == NULL) {
|
||||||
@ -72,7 +71,6 @@ ypclnt_connect(ypclnt_t *ypclnt)
|
|||||||
"caller must specify map name");
|
"caller must specify map name");
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
YPCLNT_DEBUG("map '%s'", ypclnt->map);
|
|
||||||
|
|
||||||
/* get master server for requested map unless specified */
|
/* get master server for requested map unless specified */
|
||||||
if (ypclnt->server == NULL) {
|
if (ypclnt->server == NULL) {
|
||||||
@ -83,7 +81,6 @@ ypclnt_connect(ypclnt_t *ypclnt)
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
YPCLNT_DEBUG("server '%s'", ypclnt->server);
|
|
||||||
|
|
||||||
ypclnt_error(ypclnt, NULL, NULL);
|
ypclnt_error(ypclnt, NULL, NULL);
|
||||||
return (0);
|
return (0);
|
||||||
|
@ -119,13 +119,10 @@ ypclnt_passwd(ypclnt_t *ypclnt, const struct passwd *pwd, const char *passwd)
|
|||||||
{
|
{
|
||||||
switch (ypclnt_havepasswdd(ypclnt)) {
|
switch (ypclnt_havepasswdd(ypclnt)) {
|
||||||
case 0:
|
case 0:
|
||||||
YPCLNT_DEBUG("using remote update method");
|
|
||||||
return (yppasswd_remote(ypclnt, pwd, passwd));
|
return (yppasswd_remote(ypclnt, pwd, passwd));
|
||||||
case 1:
|
case 1:
|
||||||
YPCLNT_DEBUG("using local update method");
|
|
||||||
return (yppasswd_local(ypclnt, pwd));
|
return (yppasswd_local(ypclnt, pwd));
|
||||||
default:
|
default:
|
||||||
YPCLNT_DEBUG("no rpc.yppasswdd");
|
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user