From owner-freebsd-hackers Thu Feb 26 21:10:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA17847 for freebsd-hackers-outgoing; Thu, 26 Feb 1998 21:10:01 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA17675 for ; Thu, 26 Feb 1998 21:09:50 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id VAA17589; Thu, 26 Feb 1998 21:09:19 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma017587; Thu Feb 26 21:09:18 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id VAA28488; Thu, 26 Feb 1998 21:09:18 -0800 (PST) From: Archie Cobbs Message-Id: <199802270509.VAA28488@bubba.whistle.com> Subject: Re: a chicken-egg problem with bootp and nfs_mountroot In-Reply-To: <199802270249.SAA20060@crab.whistle.com> from Doug Ambrisko at "Feb 26, 98 06:49:41 pm" To: ambrisko@whistle.com (Doug Ambrisko) Date: Thu, 26 Feb 1998 21:09:18 -0800 (PST) Cc: gurney_j@resnet.uoregon.edu, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Ambrisko writes: > 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. #define Q(x) #x Then Q(asdf) returns "asdf" (as I remember). -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message