Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/libelf/dist Squash a signed-vs-unsigned char * ...



details:   https://anonhg.NetBSD.org/src/rev/c3d85efcbff9
branches:  trunk
changeset: 750165:c3d85efcbff9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Dec 19 07:59:24 2009 +0000

description:
Squash a signed-vs-unsigned char * warning.

diffstat:

 external/bsd/libelf/dist/libelf_ar.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8e9bf05d6885 -r c3d85efcbff9 external/bsd/libelf/dist/libelf_ar.c
--- a/external/bsd/libelf/dist/libelf_ar.c      Sat Dec 19 07:58:24 2009 +0000
+++ b/external/bsd/libelf/dist/libelf_ar.c      Sat Dec 19 07:59:24 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libelf_ar.c,v 1.2 2009/12/19 05:55:37 thorpej Exp $    */
+/*     $NetBSD: libelf_ar.c,v 1.3 2009/12/19 07:59:24 thorpej Exp $    */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/libelf_ar.c,v 1.3.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
-__RCSID("$NetBSD: libelf_ar.c,v 1.2 2009/12/19 05:55:37 thorpej Exp $");
+__RCSID("$NetBSD: libelf_ar.c,v 1.3 2009/12/19 07:59:24 thorpej Exp $");
 
 #include <ar.h>
 #include <assert.h>
@@ -461,7 +461,7 @@
 
                sym->as_off = off;
                sym->as_hash = elf_hash(s);
-               sym->as_name = s;
+               sym->as_name = (char *)s;
 
                p += INTSZ;
                sym++;



Home | Main Index | Thread Index | Old Index