Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 210110 | Differences between
and this patch

Collapse All | Expand All

(-)servconf.c.orig (-4 / +15 lines)
Lines 690-695 Link Here
690
{
690
{
691
	char *cp, **charptr, *arg, *p;
691
	char *cp, **charptr, *arg, *p;
692
	int cmdline = 0, *intptr, value, n;
692
	int cmdline = 0, *intptr, value, n;
693
	unsigned long lvalue, *longptr;
693
	ServerOpCodes opcode;
694
	ServerOpCodes opcode;
694
	u_short port;
695
	u_short port;
695
	u_int i, flags = 0;
696
	u_int i, flags = 0;
Lines 704-709 Link Here
704
	if (!arg || !*arg || *arg == '#')
705
	if (!arg || !*arg || *arg == '#')
705
		return 0;
706
		return 0;
706
	intptr = NULL;
707
	intptr = NULL;
708
	longptr = NULL;
707
	charptr = NULL;
709
	charptr = NULL;
708
	opcode = parse_token(arg, filename, linenum, &flags);
710
	opcode = parse_token(arg, filename, linenum, &flags);
709
711
Lines 1421-1431 Link Here
1421
			*intptr = value;
1423
			*intptr = value;
1422
		break;
1424
		break;
1423
	case sBindTimeout:
1425
	case sBindTimeout:
1424
		intptr = (int *) &options->lpk.b_timeout.tv_sec;
1426
		longptr = (unsigned long *) &options->lpk.b_timeout.tv_sec;
1425
		goto parse_int;
1427
parse_ulong:
1428
		arg = strdelim(&cp);
1429
		if (!arg || *arg == '\0')
1430
			fatal("%s line %d: missing integer value.",
1431
			    filename, linenum);
1432
		lvalue = atol(arg);
1433
		if (*activep && *longptr == -1)
1434
			*longptr = lvalue;
1435
		break;
1436
1426
	case sSearchTimeout:
1437
	case sSearchTimeout:
1427
		intptr = (int *) &options->lpk.s_timeout.tv_sec;
1438
		longptr = (unsigned long *) &options->lpk.s_timeout.tv_sec;
1428
		goto parse_int;
1439
		goto parse_ulong;
1429
		break;
1440
		break;
1430
	case sLdapConf:
1441
	case sLdapConf:
1431
		arg = cp;
1442
		arg = cp;

Return to bug 210110