delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/05/28/04:33:17

From: Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se>
Message-Id: <200105280804.KAA05337@lws256.lu.erisoft.se>
Subject: Re: confstr implementation
To: djgpp-workers AT delorie DOT com
Date: Mon, 28 May 2001 10:04:31 +0200 (MET DST)
In-Reply-To: <3B11464B.31331.D7FED@localhost> from "Mark E." at May 27, 2001 06:24:11 PM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

>   switch (name)
>   {
>     case _CS_PATH:
>     {
>       char *djdir = getenv("DJDIR");
>       if (djdir)
>         out_len = snprintf(buf, len, "%s/bin", djdir);
>     }
>     default:
>     {
>       errno = EINVAL;
>     }
>   }

Shouldn't there be at least one "break;" there?


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019