Fix up some compilation warnings.

This commit is contained in:
Paul Traina 1996-09-22 00:55:46 +00:00
parent 3e8947d7aa
commit 79b3126fb3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18453
5 changed files with 15 additions and 21 deletions

View File

@ -1,7 +1,5 @@
/*
* $Id: rkinit_private.h,v 1.4 1993/12/23 16:47:39 dglo Exp $
* $Source: /usr/sww/share/src/kerberosIV.BSD/include/RCS/rkinit_private.h,v $
* $Author: dglo $
* $Id: rkinit_private.h,v 1.1 1995/09/15 06:19:14 gibbs Exp $
*
* Header file for rkinit library and server internal use
*/
@ -9,10 +7,6 @@
#ifndef __RKINIT_PRIVATE_H__
#define __RKINIT_PRIVATE_H__
#if !defined(lint) && !defined(SABER)
static const char *rcsid_rkinit_private_h = "$Id: rkinit_private.h,v 1.4 1993/12/23 16:47:39 dglo Exp $";
#endif /* lint || SABER */
#include <sys/types.h>
#include <netinet/in.h>

View File

@ -5,13 +5,13 @@
* <Copyright.MIT>.
*
* from: kt.c,v 4.9 89/10/25 19:03:35 qjb Exp $
* $Id: in_tkt.c,v 1.6 1995/07/18 16:38:49 mark Exp $
* $Id: in_tkt.c,v 1.4 1995/09/07 21:38:04 markm Exp $
*/
#if 0
#ifndef lint
static char rcsid[] =
"$Id: in_tkt.c,v 1.6 1995/07/18 16:38:49 mark Exp $";
"$Id: in_tkt.c,v 1.4 1995/09/07 21:38:04 markm Exp $";
#endif /* lint */
#endif
@ -95,7 +95,7 @@ in_tkt(pname,pinst)
return(KFAILURE);
} else
if (krb_debug)
printf("swapped UID's %ld and %ld\n",metoo,me);
printf("swapped UID's %d and %d\n",metoo,me);
}
if ((tktfile = open(file,O_CREAT | O_TRUNC | O_WRONLY,0600)) < 0) {
if (krb_debug)
@ -110,7 +110,7 @@ in_tkt(pname,pinst)
return(KFAILURE);
} else
if (krb_debug)
printf("swapped UID's %ld and %ld\n",me,metoo);
printf("swapped UID's %d and %d\n",me,metoo);
}
if (lstat(file,&buf) < 0) {
if (krb_debug)

View File

@ -5,13 +5,13 @@
* <Copyright.MIT>.
*
* from: tkt_string.c,v 4.6 89/01/05 12:31:51 raeburn Exp $
* $Id: tkt_string.c,v 1.3 1995/07/18 16:39:52 mark Exp $
* $Id: tkt_string.c,v 1.3 1995/09/07 21:38:35 markm Exp $
*/
#if 0
#ifndef lint
static char *rcsid =
"$Id: tkt_string.c,v 1.3 1995/07/18 16:39:52 mark Exp $";
"$Id: tkt_string.c,v 1.3 1995/09/07 21:38:35 markm Exp $";
#endif /* lint */
#endif
@ -51,7 +51,7 @@ char *tkt_string()
} else {
/* 32 bits of signed integer will always fit in 11 characters
(including the sign), so no need to worry about overflow */
(void) sprintf(krb_ticket_string, "%s%ld",TKT_ROOT,getuid());
(void) sprintf(krb_ticket_string, "%s%d",TKT_ROOT,getuid());
}
}
return krb_ticket_string;

View File

@ -1,7 +1,7 @@
/*
* $Id: rk_lib.c,v 1.1 1993/12/10 19:32:01 dglo Exp gibbs $
* $Source: /usr/src/eBones/librkinit/RCS/rk_lib.c,v $
* $Author: dglo $
* $Id: rk_lib.c,v 1.1.1.1 1995/09/15 06:09:30 gibbs Exp $
* $Source: /home/ncvs/src/eBones/lib/librkinit/rk_lib.c,v $
* $Author: gibbs $
*
* This file contains the non-rpc top-level rkinit library routines.
* The routines in the rkinit library that should be called from clients
@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(SABER) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsid = "$Id: rk_lib.c,v 1.1 1993/12/10 19:32:01 dglo Exp gibbs $";
static char *rcsid = "$Id: rk_lib.c,v 1.1.1.1 1995/09/15 06:09:30 gibbs Exp $";
#endif /* lint || SABER || LOCORE || RCS_HDRS */
#include <stdio.h>
@ -81,7 +81,7 @@ int rkinit(host, r_krealm, info, timeout)
if ((status = setjmp(timeout_env)) == 0) {
strcpy(origtktfilename, tkt_string());
sprintf(tktfilename, "/tmp/tkt_rkinit.%ld", getpid());
sprintf(tktfilename, "/tmp/tkt_rkinit.%d", getpid());
krb_set_tkt_string(tktfilename);
if ((status = rki_choose_version(&version)) == RKINIT_SUCCESS)

View File

@ -18,7 +18,7 @@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
static char rcsid[] = "$Id: atof-ieee.c,v 1.2 1993/11/03 00:53:04 paul Exp $";
static char rcsid[] = "$Id: atof-ieee.c,v 1.3 1995/05/30 04:46:46 rgrimes Exp $";
#endif
#include "as.h"
@ -128,7 +128,7 @@ static void
LITTLENUM_TYPE *words;
{
as_bad("cannot create floating-point number");
words[0] = ((unsigned) -1) >> 1; /* Zero the leftmost bit */
words[0] = LITTLENUM_MASK >> 1; /* Zero the leftmost bit */
words[1] = -1;
words[2] = -1;
words[3] = -1;