Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Use bool for "write" in ptrace_machdep_...
details: https://anonhg.NetBSD.org/src/rev/1f01a2c85284
branches: trunk
changeset: 1005052:1f01a2c85284
user: rin <rin%NetBSD.org@localhost>
date: Wed Nov 27 09:01:59 2019 +0000
description:
Use bool for "write" in ptrace_machdep_dorequest() for clarity.
No functional changes.
diffstat:
sys/arch/amd64/amd64/process_machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 6fda0b7396d2 -r 1f01a2c85284 sys/arch/amd64/amd64/process_machdep.c
--- a/sys/arch/amd64/amd64/process_machdep.c Wed Nov 27 08:56:00 2019 +0000
+++ b/sys/arch/amd64/amd64/process_machdep.c Wed Nov 27 09:01:59 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: process_machdep.c,v 1.44 2019/08/06 01:34:29 kamil Exp $ */
+/* $NetBSD: process_machdep.c,v 1.45 2019/11/27 09:01:59 rin Exp $ */
/*
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.44 2019/08/06 01:34:29 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.45 2019/11/27 09:01:59 rin Exp $");
#include "opt_xen.h"
#include <sys/param.h>
@@ -315,15 +315,15 @@
struct iovec iov;
struct vmspace *vm;
int error;
- int write = 0;
+ bool write = false;
switch (req) {
case PT_SETXSTATE:
- write = 1;
+ write = true;
/* FALLTHROUGH */
case PT_GETXSTATE:
- /* write = 0 done above. */
+ /* write = false done above. */
if (!process_machdep_validxstate(lt->l_proc))
return EINVAL;
if (__predict_false(l->l_proc->p_flag & PK_32)) {
Home |
Main Index |
Thread Index |
Old Index