Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint2 Move the character one back so that we d...
details: https://anonhg.NetBSD.org/src/rev/6f4d738e69bb
branches: trunk
changeset: 1023239:6f4d738e69bb
user: christos <christos%NetBSD.org@localhost>
date: Mon Aug 30 18:03:52 2021 +0000
description:
Move the character one back so that we don't increment twice
diffstat:
usr.bin/xlint/lint2/read.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r b55d39f380eb -r 6f4d738e69bb usr.bin/xlint/lint2/read.c
--- a/usr.bin/xlint/lint2/read.c Mon Aug 30 17:32:23 2021 +0000
+++ b/usr.bin/xlint/lint2/read.c Mon Aug 30 18:03:52 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.59 2021/08/30 14:57:04 christos Exp $ */
+/* $NetBSD: read.c,v 1.60 2021/08/30 18:03:52 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: read.c,v 1.59 2021/08/30 14:57:04 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.60 2021/08/30 18:03:52 christos Exp $");
#endif
#include <ctype.h>
@@ -137,8 +137,11 @@
parse_short(const char **p)
{
+ short s;
(*p)++;
- return (short)parse_int(p);
+ s = (short)parse_int(p);
+ (*p)--;
+ return s;
}
void
Home |
Main Index |
Thread Index |
Old Index