Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Fix unaligned access lint warning.



details:   https://anonhg.NetBSD.org/src/rev/5625d558127a
branches:  trunk
changeset: 472598:5625d558127a
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 03 14:35:46 1999 +0000

description:
Fix unaligned access lint warning.

diffstat:

 lib/libc/gen/syslog.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6c2b4b656131 -r 5625d558127a lib/libc/gen/syslog.c
--- a/lib/libc/gen/syslog.c     Mon May 03 14:33:50 1999 +0000
+++ b/lib/libc/gen/syslog.c     Mon May 03 14:35:46 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syslog.c,v 1.22 1999/03/16 14:00:58 is Exp $   */
+/*     $NetBSD: syslog.c,v 1.23 1999/05/03 14:35:46 christos Exp $     */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)syslog.c   8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: syslog.c,v 1.22 1999/03/16 14:00:58 is Exp $");
+__RCSID("$NetBSD: syslog.c,v 1.23 1999/05/03 14:35:46 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -298,7 +298,7 @@
                }
        }
        if (LogFile != -1 && !connected) {
-               if (connect(LogFile, (struct sockaddr *)&SyslogAddr,
+               if (connect(LogFile, (struct sockaddr *)(void *)&SyslogAddr,
                    SUN_LEN(&SyslogAddr)) == -1) {
                        (void)close(LogFile);
                        LogFile = -1;



Home | Main Index | Thread Index | Old Index