Modernized variable declarations. - sam - An updated version of the sam text ed… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 1a8c6b249af6c8ed6eded554277b6ef945068d55 | |
parent 6c30b996149947cc5c874fd3dc7e3fea9ac202d3 | |
Author: Rob King <[email protected]> | |
Date: Tue, 17 May 2016 17:45:48 -0500 | |
Modernized variable declarations. | |
Diffstat: | |
sam/file.c | 2 +- | |
sam/mesg.c | 8 ++++---- | |
2 files changed, 5 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/sam/file.c b/sam/file.c | |
@@ -377,7 +377,7 @@ void | |
puthdr_M(Buffer *b, Posn p, Range dot, Range mk, Mod m, short s1) | |
{ | |
Mark mark; | |
- static first = 1; | |
+ static int first = 1; | |
if(!first && p<0) | |
panic("puthdr_M"); | |
diff --git a/sam/mesg.c b/sam/mesg.c | |
@@ -99,7 +99,7 @@ journaln(int out, long n) | |
int | |
rcvchar(void){ | |
static uchar buf[64]; | |
- static i, nleft = 0; | |
+ static int i, nleft = 0; | |
if(nleft <= 0){ | |
nleft = read(0, (char *)buf, sizeof buf); | |
@@ -114,9 +114,9 @@ rcvchar(void){ | |
int | |
rcv(void){ | |
int c; | |
- static state = 0; | |
- static count = 0; | |
- static i = 0; | |
+ static int state = 0; | |
+ static int count = 0; | |
+ static int i = 0; | |
while((c=rcvchar()) != -1) | |
switch(state){ |