]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
fgetln: Fix coding style
authorGuillem Jover <guillem@hadrons.org>
Wed, 9 Jul 2008 05:26:07 +0000 (08:26 +0300)
committerGuillem Jover <guillem@hadrons.org>
Wed, 9 Jul 2008 05:26:07 +0000 (08:26 +0300)
src/fgetln.c

index 9f2a584708a813213e6c68fd5b2805aee6e014d8..e59028b6e1e1e626dfb8b3997ba1fb9c1d4a497b 100644 (file)
 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;
 }