diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
commit | c4d4a99d31762beef936f34571330923e9300da9 (patch) | |
tree | c116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libI77/iio.c | |
parent | 6657f01bfd009bbf4ec0481a17712259abf8ea77 (diff) | |
download | FreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.zip FreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.tar.gz |
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'lib/libI77/iio.c')
-rw-r--r-- | lib/libI77/iio.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/libI77/iio.c b/lib/libI77/iio.c index 4c8eb9d..dff9e3f 100644 --- a/lib/libI77/iio.c +++ b/lib/libI77/iio.c @@ -6,6 +6,8 @@ char *f__icend; extern icilist *f__svic; int f__icnum; extern int f__hiwater; + +int z_getc(Void) { if(f__recpos++ < f__svic->icirlen) { @@ -15,9 +17,9 @@ z_getc(Void) return '\n'; } #ifdef KR_headers -z_putc(c) +int z_putc(c) #else -z_putc(int c) +int z_putc(int c) #endif { if(f__icptr >= f__icend) err(f__svic->icierr,110,"inwrite"); @@ -26,6 +28,8 @@ z_putc(int c) else err(f__svic->icierr,110,"recend"); return 0; } + +int z_rnew(Void) { f__icptr = f__svic->iciunit + (++f__icnum)*f__svic->icirlen; @@ -43,9 +47,9 @@ z_endp(Void) } #ifdef KR_headers -c_si(a) icilist *a; +int c_si(a) icilist *a; #else -c_si(icilist *a) +int c_si(icilist *a) #endif { f__elist = (cilist *)a; @@ -82,7 +86,7 @@ integer s_rsfi(a) icilist *a; integer s_rsfi(icilist *a) #endif { int n; - if(n=c_si(a)) return(n); + if( (n=c_si(a)) ) return(n); f__reading=1; f__doed=rd_ed; f__doned=rd_ned; @@ -93,6 +97,7 @@ integer s_rsfi(icilist *a) return(0); } +int z_wnew(Void) { if (f__recpos < f__hiwater) { @@ -113,7 +118,7 @@ integer s_wsfi(a) icilist *a; integer s_wsfi(icilist *a) #endif { int n; - if(n=c_si(a)) return(n); + if( (n=c_si(a)) ) return(n); f__reading=0; f__doed=w_ed; f__doned=w_ned; |