Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode fix label and variable name.
details: https://anonhg.NetBSD.org/src/rev/8af7a2bbfe77
branches: trunk
changeset: 342431:8af7a2bbfe77
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 21 20:44:54 2015 +0000
description:
fix label and variable name.
diffstat:
sys/arch/usermode/usermode/thunk.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r d82424e3193d -r 8af7a2bbfe77 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Mon Dec 21 19:54:35 2015 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Mon Dec 21 20:44:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.86 2015/12/21 19:54:35 christos Exp $ */
+/* $NetBSD: thunk.c,v 1.87 2015/12/21 20:44:54 christos Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.86 2015/12/21 19:54:35 christos Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.87 2015/12/21 20:44:54 christos Exp $");
#endif
#include <sys/types.h>
@@ -768,10 +768,10 @@
if (rlen == -1)
goto out;
- buf[rlen ? rlen - 1 : 0] = '\0';
+ cp[rlen ? rlen - 1 : 0] = '\0';
*len = rlen;
return 0;
-bad:
+out:
*len = 0;
return -1;
}
Home |
Main Index |
Thread Index |
Old Index