X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetusershell.c;h=2f167181cf0a6fb9586da1d8911d1fd5d3c59f9e;hb=3ec28ba4f3c84ef294f14c8a7cff3c9e934c4944;hp=9eb2520b0df61b46ba4ca7b848827dce80327ef4;hpb=86464e344f97667276bdc3b11fab107ddde63893;p=gnulib.git diff --git a/lib/getusershell.c b/lib/getusershell.c index 9eb2520b0..2f167181c 100644 --- a/lib/getusershell.c +++ b/lib/getusershell.c @@ -12,32 +12,25 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie */ #ifdef HAVE_CONFIG_H -#if defined (CONFIG_BROKETS) -/* We use instead of "config.h" so that a compilation - using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h - (which it would do because it found this file in $srcdir). */ -#include -#else -#include "config.h" -#endif +# include #endif #ifndef SHELLS_FILE /* File containing a list of nonrestricted shells, one per line. */ -#define SHELLS_FILE "/etc/shells" +# define SHELLS_FILE "/etc/shells" #endif #include #include #ifdef STDC_HEADERS -#include +# include #else char *malloc (); char *realloc (); @@ -184,7 +177,7 @@ readname (name, size, stream) /* Skip blank space. */ while ((c = getc (stream)) != EOF && isspace (c)) /* Do nothing. */ ; - + while (c != EOF && !isspace (c)) { (*name)[name_index++] = c;