Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 1998 18:49:41 -0800 (PST)
From:      Doug Ambrisko <ambrisko@whistle.com>
To:        gurney_j@resnet.uoregon.edu
Cc:        ambrisko@whistle.com, hackers@FreeBSD.ORG
Subject:   Re: a chicken-egg problem with bootp and nfs_mountroot
Message-ID:  <199802270249.SAA20060@crab.whistle.com>
In-Reply-To: <19980226183143.51935@hydrogen.nike.efn.org> from John-Mark Gurney at "Feb 26, 98 06:31:43 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
John-Mark Gurney writes:
| Doug Ambrisko scribbled this message on Feb 26:
| > BTW anyone know how to pass a string in via a #define in config?
| 
| in your config file:
| options	"DEFINENAME=string value"
| 
| should do it...


Don't think so for example:
	options	"BOOTP_WIRED_TO=fxp0"
Then in a c-snippet:
	strcmp(string,BOOTP_WIRED_TO)
Will change into
	strcmp(string,fxp0)
which will fail to compile want
	 strcmp(string,"fxp0")
so for now I stick in a 
	#define BOOTP_WIRED_TO "fxp0" 
in the code.

I need the quotes passed through or made to happen someway.

Doug A.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802270249.SAA20060>