Fix harmless bugs found while hunting for chpass nis failure
This commit is contained in:
parent
8ada212ae6
commit
d21fb5dc4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19778
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: yppasswdd_main.c,v 1.5 1996/10/22 14:58:10 wpaul Exp $
|
||||
* $Id: yppasswdd_main.c,v 1.6 1996/10/23 15:42:37 wpaul Exp $
|
||||
*/
|
||||
|
||||
#include "yppasswd.h"
|
||||
@ -72,7 +72,7 @@ struct dom_binding {};
|
||||
|
||||
#define _RPCSVC_CLOSEDOWN 120
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.5 1996/10/22 14:58:10 wpaul Exp $";
|
||||
static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.6 1996/10/23 15:42:37 wpaul Exp $";
|
||||
#endif /* not lint */
|
||||
int _rpcpmstart = 0; /* Started by a port monitor ? */
|
||||
static int _rpcfdtype;
|
||||
@ -194,6 +194,7 @@ static void usage()
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
@ -204,7 +205,6 @@ main(argc, argv)
|
||||
struct sockaddr_in saddr;
|
||||
int asize = sizeof (saddr);
|
||||
int ch;
|
||||
int rval;
|
||||
char *mastername;
|
||||
char myname[MAXHOSTNAMELEN + 2];
|
||||
extern int errno;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: yppasswdd_server.c,v 1.6 1996/07/01 19:38:38 guido Exp $
|
||||
* $Id: yppasswdd_server.c,v 1.9 1996/10/23 21:46:17 wpaul Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -61,7 +61,7 @@ struct dom_binding {};
|
||||
#include "yppasswd_comm.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.6 1996/07/01 19:38:38 guido Exp $";
|
||||
static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.9 1996/10/23 21:46:17 wpaul Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
char *tempname;
|
||||
@ -320,7 +320,7 @@ static int update_inplace(pw, domain)
|
||||
DBT data = { NULL, 0 };
|
||||
char pwbuf[YPMAXRECORD];
|
||||
char keybuf[20];
|
||||
int rval, i;
|
||||
int i;
|
||||
char *maps[] = { "master.passwd.byname", "master.passwd.byuid",
|
||||
"passwd.byname", "passwd.byuid" };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user