Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Slight rework due to declaration ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed May 13, 2016
1 parent eef99f4 commit 6c75135
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/wordfile.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: wordfile.c,v 2.22 2016/05/13 09:12:19 schorsch Exp $";
static const char RCSid[] = "$Id: wordfile.c,v 2.23 2016/05/13 16:24:26 greg Exp $";
#endif
/*
* Load whitespace separated words from a file into an array.
Expand Down Expand Up @@ -29,7 +29,6 @@ wordfile( /* get words from fname, put in words */
{
int wrdcnt = 0;
int n = 0;
int dlen = 0;
int fd;
char buf[MAXWLEN];
/* load file into buffer */
Expand All @@ -41,7 +40,7 @@ wordfile( /* get words from fname, put in words */
return(-1); /* open error */
words[0] = NULL;
while (nargs > 1 && (n += read(fd, buf+n, MAXWLEN-n)) > 0) {
dlen = n;
int dlen = n;
int crem = 0;
if (n > MAXWLEN/2) /* check for mid-word end */
while (!isspace(buf[--n])) {
Expand Down

0 comments on commit 6c75135

Please sign in to comment.