Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/autofs sprinkle unconst



details:   https://anonhg.NetBSD.org/src/rev/c6bf37e091d3
branches:  trunk
changeset: 829024:c6bf37e091d3
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 15 00:46:16 2018 +0000

description:
sprinkle unconst

diffstat:

 usr.sbin/autofs/automount.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 1ed3f3955f53 -r c6bf37e091d3 usr.sbin/autofs/automount.c
--- a/usr.sbin/autofs/automount.c       Sun Jan 14 22:51:12 2018 +0000
+++ b/usr.sbin/autofs/automount.c       Mon Jan 15 00:46:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: automount.c,v 1.1 2018/01/09 03:31:15 christos Exp $   */
+/*     $NetBSD: automount.c,v 1.2 2018/01/15 00:46:16 christos Exp $   */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: automount.c,v 1.1 2018/01/09 03:31:15 christos Exp $");
+__RCSID("$NetBSD: automount.c,v 1.2 2018/01/15 00:46:16 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/mount.h>
@@ -100,9 +100,9 @@
            from, fspath, prefix, options);
 
        memset(&args, 0, sizeof(args));
-       args.from = from;
-       args.master_options = options;
-       args.master_prefix = prefix;
+       args.from = __UNCONST(from);
+       args.master_options = __UNCONST(options);
+       args.master_prefix = __UNCONST(prefix);
 
        error = mount("autofs", fspath, 0, &args, sizeof(args));
        if (error != 0)



Home | Main Index | Thread Index | Old Index