From: Guillem Jover Date: Wed, 9 Jul 2008 05:26:07 +0000 (+0300) Subject: fgetln: Fix coding style X-Git-Tag: 0.0~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fafffd1f7eebdf73a5e3ceb343025272493ebf21;p=thirdparty%2Flibbsd.git fgetln: Fix coding style --- diff --git a/src/fgetln.c b/src/fgetln.c index 9f2a584..e59028b 100644 --- a/src/fgetln.c +++ b/src/fgetln.c @@ -34,15 +34,15 @@ char * fgetln (FILE *stream, size_t *len) { - char *line=NULL; + char *line = NULL; ssize_t nread; nread = getline (&line, len, stream); if (nread == -1) return NULL; - (*len)--; /* get rid of the trailing \0, fgetln - does not have it */ + /* Get rid of the trailing \0, fgetln does not have it. */ + (*len)--; return line; }