Source-Changes-HG archive

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

[src/trunk]: src/dist/dhcp/dst Avoid strict alias warnings.



details:   https://anonhg.NetBSD.org/src/rev/ac2b9249f1b8
branches:  trunk
changeset: 540176:ac2b9249f1b8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Dec 06 04:02:49 2002 +0000

description:
Avoid strict alias warnings.

diffstat:

 dist/dhcp/dst/dst_api.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 9e57b12ce7ae -r ac2b9249f1b8 dist/dhcp/dst/dst_api.c
--- a/dist/dhcp/dst/dst_api.c   Fri Dec 06 03:57:51 2002 +0000
+++ b/dist/dhcp/dst/dst_api.c   Fri Dec 06 04:02:49 2002 +0000
@@ -1,6 +1,6 @@
 #ifndef LINT
 #if 0
-static const char rcsid[] = "$Header: /cvsroot/src/dist/dhcp/dst/Attic/dst_api.c,v 1.2 2002/06/15 01:32:13 matt Exp $";
+static const char rcsid[] = "$Header: /cvsroot/src/dist/dhcp/dst/Attic/dst_api.c,v 1.3 2002/12/06 04:02:49 thorpej Exp $";
 #endif
 #endif
 
@@ -868,7 +868,7 @@
        len = cnt;
        p = in_buff;
 
-       if (!dst_s_verify_str((const char **) &p, "Private-key-format: v")) {
+       if (!dst_s_verify_str((void *) &p, "Private-key-format: v")) {
                EREPORT(("dst_s_read_private_key_file(): Not a Key file/Decrypt failed %s\n", name));
                goto fail;
        }
@@ -886,7 +886,7 @@
 
        while (*p++ != '\n') ;  /* skip to end of line */
 
-       if (!dst_s_verify_str((const char **) &p, "Algorithm: "))
+       if (!dst_s_verify_str((void *) &p, "Algorithm: "))
                goto fail;
 
        if (sscanf((char *)p, "%d", &alg) != 1)



Home | Main Index | Thread Index | Old Index