Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Use const void *
details: https://anonhg.NetBSD.org/src/rev/2bdfe9e6dfb8
branches: trunk
changeset: 784579:2bdfe9e6dfb8
user: matt <matt%NetBSD.org@localhost>
date: Sat Feb 02 17:58:11 2013 +0000
description:
Use const void *
diffstat:
sys/sys/cdefs_elf.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r a1e2d7daef8c -r 2bdfe9e6dfb8 sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Sat Feb 02 15:24:08 2013 +0000
+++ b/sys/sys/cdefs_elf.h Sat Feb 02 17:58:11 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs_elf.h,v 1.41 2013/02/02 14:03:38 matt Exp $ */
+/* $NetBSD: cdefs_elf.h,v 1.42 2013/02/02 17:58:11 matt Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -132,10 +132,10 @@
#ifndef __lint__
#define __link_set_make_entry(set, sym) \
static void const * const __link_set_##set##_sym_##sym \
- __section("link_set_" #set) __used = (void *)&sym
+ __section("link_set_" #set) __used = (const void *)&sym
#define __link_set_make_entry2(set, sym, n) \
static void const * const __link_set_##set##_sym_##sym##_##n \
- __section("link_set_" #set) __used = (void *)&sym[n]
+ __section("link_set_" #set) __used = (const void *)&sym[n]
#else
#define __link_set_make_entry(set, sym) \
extern void const * const __link_set_##set##_sym_##sym
Home |
Main Index |
Thread Index |
Old Index