#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/butc/read_tape.c,v 1.1.1.4 2001/07/14 22:21:06 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/butc/read_tape.c,v 1.2 2002/10/20 19:01:30 hartmans Exp $");
#include <afs/cmd.h>
#include <lock.h>
struct volumeHeader *headerPtr;
{
afs_int32 len;
- char ch;
+ int ch;
int rc;
int oflag;
int skip, first;
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/butc/recoverDb.c,v 1.1.1.5 2001/09/11 14:31:51 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/butc/recoverDb.c,v 1.2 2002/10/20 19:01:30 hartmans Exp $");
#include <stdio.h>
#ifdef AFS_NT40_ENV
Ask(st)
char *st;
{
- char response;
+ int response;
while (1)
{
fflush(stdout);
response = getchar();
if ( response == 'y' ) return(1);
- else if ( response == 'n' ) return(0);
+ else if ( response == 'n' || response == EOF) return(0);
printf("please answer y/n\n");
}
}
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/kauth/klogin.c,v 1.1.1.8 2001/10/14 18:05:08 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/kauth/klogin.c,v 1.2 2002/10/20 19:01:30 hartmans Exp $");
#if !defined(AFS_SUN_ENV) && !defined(AFS_AIX_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_SGI_ENV) && !defined(AFS_SUN5_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
#include <sys/param.h>
static void getloginname(register struct utmp *up)
{
register char *namep;
- char c;
+ int c;
while (up->ut_name[0] == '\0') {
namep = up->ut_name;
while ((c = getchar()) != '\n') {
if (c == ' ')
c = '_';
- if (c == (char)EOF)
+ if (c == EOF)
exit(0);
if (namep < up->ut_name+NMAX)
- *namep++ = c;
+ *namep++ = (char) c;
}
}
strncpy(lusername, up->ut_name, NMAX);
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/login/login.c,v 1.1.1.5 2001/09/11 14:33:33 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/login/login.c,v 1.2 2002/10/20 19:01:30 hartmans Exp $");
#include <unistd.h>
#include <stdlib.h>
exit(0);
}
if (p < nbuf + UT_NAMESIZE)
- *p++ = ch;
+ *p++ = (char) ch;
}
if (p > nbuf) {
if (nbuf[0] == '-')
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/waitkey.c,v 1.1.1.10 2001/10/14 18:05:48 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/waitkey.c,v 1.2 2002/10/20 19:01:31 hartmans Exp $");
#include <stdio.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
*key = getche(); /* get char and echo it to screen */
#else
- *key = getchar();
+ *key = (char ) getchar();
#endif
return rc;
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/volser/vos.c,v 1.1.1.11 2002/09/26 19:09:35 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/volser/vos.c,v 1.2 2002/10/20 19:01:31 hartmans Exp $");
#include <sys/types.h>
#ifdef AFS_NT40_ENV
else { /* volume exists - do we do a full incremental or abort */
int Oserver, Opart, Otype, vol_elsewhere = 0;
struct nvldbentry Oentry;
- char c, dc;
+ int c, dc;
if(avolid == 0) {
avolid = entry.volumeId[voltype];
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/volser/vsprocs.c,v 1.1.1.9 2002/09/26 19:09:36 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/volser/vsprocs.c,v 1.2 2002/10/20 19:01:31 hartmans Exp $");
#include <stdio.h>
#include <sys/types.h>
yesprompt(str)
char *str;
{
- char response, c;
+ int response, c;
int code;
fprintf(STDERR, "Do you want to %s? [yn](n): ", str);