Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include cast to LHS type and minor KNF.
details: https://anonhg.NetBSD.org/src/rev/69d88be1986a
branches: trunk
changeset: 331290:69d88be1986a
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 07 17:24:03 2014 +0000
description:
cast to LHS type and minor KNF.
diffstat:
include/stdio.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 253cdcda40e5 -r 69d88be1986a include/stdio.h
--- a/include/stdio.h Thu Aug 07 16:51:56 2014 +0000
+++ b/include/stdio.h Thu Aug 07 17:24:03 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdio.h,v 1.90 2014/05/23 16:48:52 joerg Exp $ */
+/* $NetBSD: stdio.h,v 1.91 2014/08/07 17:24:03 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -458,9 +458,9 @@
#if defined(__GNUC__) && defined(__STDC__)
static __inline int __sputc(int _c, FILE *_p) {
if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n'))
- return (*_p->_p++ = _c);
+ return *_p->_p++ = (unsigned char)_c;
else
- return (__swbuf(_c, _p));
+ return __swbuf(_c, _p);
}
#else
/*
Home |
Main Index |
Thread Index |
Old Index