Module Name: src
Committed By: christos
Date: Mon Jan 15 00:46:16 UTC 2018
Modified Files:
src/usr.sbin/autofs: automount.c
Log Message:
sprinkle unconst
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/autofs/automount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/autofs/automount.c
diff -u src/usr.sbin/autofs/automount.c:1.1 src/usr.sbin/autofs/automount.c:1.2
--- src/usr.sbin/autofs/automount.c:1.1 Mon Jan 8 22:31:15 2018
+++ src/usr.sbin/autofs/automount.c Sun Jan 14 19:46:16 2018
@@ -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 @@ mount_autofs(const char *from, const cha
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)