Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys unconst argument to swapctl().



details:   https://anonhg.NetBSD.org/src/rev/42d0e2c1d377
branches:  trunk
changeset: 581960:42d0e2c1d377
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 12 02:57:58 2005 +0000

description:
unconst argument to swapctl().

diffstat:

 lib/libc/sys/swapon.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 61ce2b8fa95d -r 42d0e2c1d377 lib/libc/sys/swapon.c
--- a/lib/libc/sys/swapon.c     Sun Jun 12 00:24:32 2005 +0000
+++ b/lib/libc/sys/swapon.c     Sun Jun 12 02:57:58 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: swapon.c,v 1.7 1999/03/18 04:48:03 mrg Exp $   */
+/*     $NetBSD: swapon.c,v 1.8 2005/06/12 02:57:58 christos Exp $      */
 
 /*
  * Copyright (c) 1997 Matthew R. Green
@@ -37,5 +37,5 @@
        const char *name;
 {
 
-       return (swapctl(SWAP_ON, name, 0));
+       return (swapctl(SWAP_ON, __UNCONST(name), 0));
 }



Home | Main Index | Thread Index | Old Index