diff options
author | chip <chip> | 2001-01-21 04:26:06 +0000 |
---|---|---|
committer | chip <chip> | 2001-01-21 04:26:06 +0000 |
commit | b5cb3f2f03186c514af01b835296da084ae286d9 (patch) | |
tree | 558d45efd7cfa1ffcffc6797fde6bb139116d086 /support/nfs/xio.c | |
parent | 2da8f89b798fc5d811fc4b252ca8ad7461d07fbd (diff) | |
download | nfs-utils-b5cb3f2f03186c514af01b835296da084ae286d9.tar.gz nfs-utils-b5cb3f2f03186c514af01b835296da084ae286d9.tar.xz nfs-utils-b5cb3f2f03186c514af01b835296da084ae286d9.zip |
2001-01-20 Chip Salzenberg <chip@valinux.com>
* support/include/xio.h (xgetc): Declare to return int.
* support/nfs/xio.c (xgetc): Return int.
(xgettok, xskip, xskipcomment): Use int for value of xgetc.
* utils/statd/statd.c (main): Use int for value of getopt.
* debian/changelog: Version 0.2.1-5.
Diffstat (limited to 'support/nfs/xio.c')
-rw-r--r-- | support/nfs/xio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/support/nfs/xio.c b/support/nfs/xio.c index db5e2c3..cfdb1d1 100644 --- a/support/nfs/xio.c +++ b/support/nfs/xio.c @@ -87,7 +87,7 @@ int xgettok(XFILE *xfp, char sepa, char *tok, int len) { int i = 0; - char c = 0; + int c = 0; while (i < len && (c = xgetc(xfp)) != EOF && c != sepa && !isspace(c)) tok[i++] = c; @@ -101,10 +101,10 @@ xgettok(XFILE *xfp, char sepa, char *tok, int len) return 1; } -char +int xgetc(XFILE *xfp) { - char c = getc(xfp->x_fp); + int c = getc(xfp->x_fp); if (c == EOF) return c; @@ -139,7 +139,7 @@ xungetc(int c, XFILE *xfp) void xskip(XFILE *xfp, char *str) { - char c; + int c; while ((c = xgetc(xfp)) != EOF && strchr(str, c)); ungetc(c, xfp->x_fp); @@ -148,7 +148,7 @@ xskip(XFILE *xfp, char *str) char xskipcomment(XFILE *xfp) { - char c; + int c; while ((c = getc(xfp->x_fp)) != EOF && c != '\n'); return c; |