summaryrefslogtreecommitdiffstats
path: root/eBones/lib/libkrb/fgetst.c
diff options
context:
space:
mode:
Diffstat (limited to 'eBones/lib/libkrb/fgetst.c')
-rw-r--r--eBones/lib/libkrb/fgetst.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/eBones/lib/libkrb/fgetst.c b/eBones/lib/libkrb/fgetst.c
index 4c6a364..796caca 100644
--- a/eBones/lib/libkrb/fgetst.c
+++ b/eBones/lib/libkrb/fgetst.c
@@ -25,9 +25,13 @@ static char rcsid[] =
* returns the number of characters read, including the null terminator.
*/
-int fgetst(FILE *f, char *s, int n)
+int
+fgetst(f, s, n)
+ FILE *f;
+ register char *s;
+ int n;
{
- register count = n;
+ register int count = n;
int ch; /* NOT char; otherwise you don't see EOF */
while ((ch = getc(f)) != EOF && ch && --count) {
OpenPOWER on IntegriCloud