Avoid strict-alias warnings.

This commit is contained in:
scw 2002-12-06 09:57:58 +00:00
parent f7aebc0017
commit f88b19a600
6 changed files with 30 additions and 30 deletions

View File

@ -26,7 +26,7 @@
#include "uucnfi.h"
#if USE_RCS_ID
const char _uuconf_hsinfo_rcsid[] = "$Id: hsinfo.c,v 1.3 1995/08/24 05:21:23 jtc Exp $";
const char _uuconf_hsinfo_rcsid[] = "$Id: hsinfo.c,v 1.4 2002/12/06 09:57:58 scw Exp $";
#endif
#include <errno.h>
@ -582,7 +582,7 @@ _uuconf_ihdb_system_internal (qglobal, zsystem, qsys)
/* HDB does not have a maximum number of retries if a retry time is
given in the time field. */
if (qsys->uuconf_qtimegrade != NULL
&& qsys->uuconf_qtimegrade != (struct uuconf_timespan *) &_uuconf_unset
&& qsys->uuconf_qtimegrade != (void *) &_uuconf_unset
&& qsys->uuconf_qtimegrade->uuconf_cretry > 0)
qsys->uuconf_cmax_retries = 0;

View File

@ -26,7 +26,7 @@
#include "uucnfi.h"
#if USE_RCS_ID
const char _uuconf_syssub_rcsid[] = "$Id: syssub.c,v 1.3 1995/08/24 05:22:00 jtc Exp $";
const char _uuconf_syssub_rcsid[] = "$Id: syssub.c,v 1.4 2002/12/06 09:57:58 scw Exp $";
#endif
#include <errno.h>
@ -136,7 +136,7 @@ _uuconf_uclear_system (q)
#define CLEAR(x) q->x = (char **) &_uuconf_unset
SYSTEM_STRING_ARRAYS (CLEAR);
#undef CLEAR
#define CLEAR(x) q->x = (struct uuconf_timespan *) &_uuconf_unset
#define CLEAR(x) q->x = (void *) &_uuconf_unset
SYSTEM_TIMESPANS (CLEAR);
#undef CLEAR
#define CLEAR(x) q->x = -1
@ -146,7 +146,7 @@ _uuconf_uclear_system (q)
q->uuconf_qalternate = NULL;
q->uuconf_zport = (char *) &_uuconf_unset;
q->uuconf_qport = (struct uuconf_port *) &_uuconf_unset;
q->uuconf_qproto_params = (struct uuconf_proto_param *) &_uuconf_unset;
q->uuconf_qproto_params = (void *) &_uuconf_unset;
q->uuconf_palloc = NULL;
}
@ -211,7 +211,7 @@ _uuconf_isystem_default (qglobal, qset, qdefault, faddalternates)
SYSTEM_STRING_ARRAYS (DEFAULT);
#undef DEFAULT
#define DEFAULT(x) \
if (qalt->x == (struct uuconf_timespan *) &_uuconf_unset) \
if (qalt->x == (void *) &_uuconf_unset) \
qalt->x = qdefault->x
SYSTEM_TIMESPANS (DEFAULT);
#undef DEFAULT
@ -230,7 +230,7 @@ _uuconf_isystem_default (qglobal, qset, qdefault, faddalternates)
qalt->uuconf_qport = qdefault->uuconf_qport;
if (qalt->uuconf_qproto_params
== (struct uuconf_proto_param *) &_uuconf_unset)
== (void *) &_uuconf_unset)
qalt->uuconf_qproto_params = qdefault->uuconf_qproto_params;
else if (qdefault->uuconf_qproto_params != NULL)
{
@ -503,7 +503,7 @@ _uuconf_isystem_basic_default (qglobal, q)
SYSTEM_STRING_ARRAYS(SET);
#undef SET
#define SET(x) \
if (q->x == (struct uuconf_timespan *) &_uuconf_unset) q->x = NULL
if (q->x == (void *) &_uuconf_unset) q->x = NULL
SYSTEM_TIMESPANS (SET);
#undef SET
#define SET(x) if (q->x < 0) q->x = 0
@ -516,7 +516,7 @@ _uuconf_isystem_basic_default (qglobal, q)
if (q->uuconf_qport == (struct uuconf_port *) &_uuconf_unset)
q->uuconf_qport = NULL;
if (q->uuconf_qproto_params
== (struct uuconf_proto_param *) &_uuconf_unset)
== (void *) &_uuconf_unset)
q->uuconf_qproto_params = NULL;
}

View File

@ -26,7 +26,7 @@
#include "uucnfi.h"
#if USE_RCS_ID
const char _uuconf_time_rcsid[] = "$Id: time.c,v 1.3 1995/08/24 05:22:09 jtc Exp $";
const char _uuconf_time_rcsid[] = "$Id: time.c,v 1.4 2002/12/06 09:57:58 scw Exp $";
#endif
#include <ctype.h>
@ -84,7 +84,7 @@ _uuconf_itime_parse (qglobal, ztime, ival, cretry, picmp, pqspan, pblock)
const char *z;
qlist = *pqspan;
if (qlist == (struct uuconf_timespan *) &_uuconf_unset)
if (qlist == (void *) &_uuconf_unset)
qlist = NULL;
/* Expand the string using a timetable. Keep rechecking the string

View File

@ -26,7 +26,7 @@
#include "uucnfi.h"
#if USE_RCS_ID
const char _uuconf_tsinfo_rcsid[] = "$Id: tsinfo.c,v 1.3 1995/08/24 05:22:15 jtc Exp $";
const char _uuconf_tsinfo_rcsid[] = "$Id: tsinfo.c,v 1.4 2002/12/06 09:57:59 scw Exp $";
#endif
#include <errno.h>
@ -331,13 +331,13 @@ uiset_call (qsys)
struct uuconf_system *qsys;
{
qsys->uuconf_fcall =
(qsys->uuconf_qtimegrade != (struct uuconf_timespan *) &_uuconf_unset
|| qsys->uuconf_zport != (char *) &_uuconf_unset
|| qsys->uuconf_qport != (struct uuconf_port *) &_uuconf_unset
(qsys->uuconf_qtimegrade != (void *) &_uuconf_unset
|| qsys->uuconf_zport != (void *) &_uuconf_unset
|| qsys->uuconf_qport != (void *) &_uuconf_unset
|| qsys->uuconf_ibaud >= 0
|| qsys->uuconf_zphone != (char *) &_uuconf_unset
|| qsys->uuconf_schat.uuconf_pzchat != (char **) &_uuconf_unset
|| qsys->uuconf_schat.uuconf_pzprogram != (char **) &_uuconf_unset);
|| qsys->uuconf_zphone != (void *) &_uuconf_unset
|| qsys->uuconf_schat.uuconf_pzchat != (void *) &_uuconf_unset
|| qsys->uuconf_schat.uuconf_pzprogram != (void *) &_uuconf_unset);
qsys->uuconf_fcalled =
qsys->uuconf_zcalled_login != (char *) &_uuconf_unset;
@ -779,7 +779,7 @@ iiproto_param (pglobal, argc, argv, pvar, pinfo)
struct uuconf_proto_param **pqparam = (struct uuconf_proto_param **) pvar;
struct sinfo *qinfo = (struct sinfo *) pinfo;
if (*pqparam == (struct uuconf_proto_param *) &_uuconf_unset)
if (*pqparam == (void *) &_uuconf_unset)
*pqparam = NULL;
return _uuconf_iadd_proto_param (qglobal, argc - 1, argv + 1, pqparam,
qinfo->qsys->uuconf_palloc);

View File

@ -26,7 +26,7 @@
#include "uucnfi.h"
#if USE_RCS_ID
const char uuconv_rcsid[] = "$Id: uuconv.c,v 1.3 1995/08/24 05:23:16 jtc Exp $";
const char uuconv_rcsid[] = "$Id: uuconv.c,v 1.4 2002/12/06 09:57:59 scw Exp $";
#endif
#include "getopt.h"
@ -624,7 +624,7 @@ uvwrite_size (e, qtime, zcmd)
struct uuconf_timespan *qtime;
const char *zcmd;
{
if (qtime != (struct uuconf_timespan *) &_uuconf_unset)
if (qtime != (void *) &_uuconf_unset)
{
for (; qtime != NULL; qtime = qtime->uuconf_qnext)
{
@ -759,7 +759,7 @@ uvwrite_proto_params (e, qparams, zprefix)
const struct uuconf_proto_param *qp;
if (qparams == NULL
|| qparams == (struct uuconf_proto_param *) &_uuconf_unset)
|| qparams == (void *) &_uuconf_unset)
return;
for (qp = qparams; qp->uuconf_bproto != '\0'; qp++)
@ -813,7 +813,7 @@ uvwrite_taylor_system (e, q)
if (CHANGED (uuconf_qtimegrade)
&& (q->uuconf_qtimegrade
!= (struct uuconf_timespan *) &_uuconf_unset))
!= (void *) &_uuconf_unset))
{
if (q->uuconf_qtimegrade == NULL)
fprintf (e, "time never\n");
@ -837,7 +837,7 @@ uvwrite_taylor_system (e, q)
if (CHANGED (uuconf_qcalltimegrade)
&& (q->uuconf_qcalltimegrade
!= (struct uuconf_timespan *) &_uuconf_unset))
!= (void *) &_uuconf_unset))
{
for (qtime = q->uuconf_qcalltimegrade;
qtime != NULL;
@ -851,7 +851,7 @@ uvwrite_taylor_system (e, q)
if (CHANGED (uuconf_qcalledtimegrade)
&& (q->uuconf_qcalledtimegrade
!= (struct uuconf_timespan *) &_uuconf_unset))
!= (void *) &_uuconf_unset))
{
for (qtime = q->uuconf_qcalledtimegrade;
qtime != NULL;
@ -1035,7 +1035,7 @@ uvwrite_v2_system (e, q)
{
fprintf (e, "%s", q->uuconf_zname);
if (q->uuconf_qtimegrade != (struct uuconf_timespan *) &_uuconf_unset)
if (q->uuconf_qtimegrade != (void *) &_uuconf_unset)
{
fprintf (e, " ");
uvwrite_time (e, q->uuconf_qtimegrade);
@ -1120,7 +1120,7 @@ uvwrite_hdb_system (e, qsys)
fprintf (e, "%s", q->uuconf_zname);
if (q->uuconf_qtimegrade
!= (struct uuconf_timespan *) &_uuconf_unset)
!= (void *) &_uuconf_unset)
{
const char *zport;

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_netbsd.c,v 1.67 2002/11/01 19:26:22 jdolecek Exp $ */
/* $NetBSD: netbsd32_netbsd.c,v 1.68 2002/12/06 10:02:40 scw Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.67 2002/11/01 19:26:22 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.68 2002/12/06 10:02:40 scw Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@ -1700,7 +1700,7 @@ netbsd32_mmap(p, v, retval)
NETBSD32TO64_UAP(fd);
NETBSD32TOX_UAP(pad, long);
NETBSD32TOX_UAP(pos, off_t);
error = sys_mmap(p, &ua, (register_t *)&rt);
error = sys_mmap(p, &ua, (void *)&rt);
if ((u_long)rt > (u_long)UINT_MAX) {
printf("netbsd32_mmap: retval out of range: %p", rt);
/* Should try to recover and return an error here. */