* 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.
+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.
+
2000-12-10 Chip Salzenberg <chip@valinux.com>
* utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
+nfs-utils (1:0.2.1-5) unstable; urgency=low
+
+ * Fix statd callback protection ("--secure-statd") to
+ 1. work with current kernels as far as possible, and
+ 2. allow for Trond's recent NFS patches, which change the
+ static callback RPC procedure.
+ * Store return values of getc and getopt in int variables:
+ they can return EOF, which requires an int. (From NMU)
+
+ -- Chip Salzenberg <chip@debian.org> Sat, 20 Jan 2001 20:03:07 -0800
+
nfs-utils (1:0.2.1-4) unstable; urgency=medium
* Warn about common errors in /etc/exports. (closes: #66421)
void xfunlock(int lockid);
void xfclose(XFILE *xfp);
int xgettok(XFILE *xfp, char sepa, char *tok, int len);
-char xgetc(XFILE *xfp);
+int xgetc(XFILE *xfp);
void xungetc(int c, XFILE *xfp);
void xskip(XFILE *xfp, char *str);
char xskipcomment(XFILE *xfp);
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;
return 1;
}
-char
+int
xgetc(XFILE *xfp)
{
- char c = getc(xfp->x_fp);
+ int c = getc(xfp->x_fp);
if (c == EOF)
return c;
void
xskip(XFILE *xfp, char *str)
{
- char c;
+ int c;
while ((c = xgetc(xfp)) != EOF && strchr(str, c));
ungetc(c, xfp->x_fp);
char
xskipcomment(XFILE *xfp)
{
- char c;
+ int c;
while ((c = getc(xfp->x_fp)) != EOF && c != '\n');
return c;
{
extern char *optarg;
int pid;
- char arg;
+ int arg;
/* Default: daemon mode, no other options */
run_mode = 0;