Module Name: src
Committed By: christos
Date: Thu Aug 7 17:24:03 UTC 2014
Modified Files:
src/include: stdio.h
Log Message:
cast to LHS type and minor KNF.
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/include/stdio.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/stdio.h
diff -u src/include/stdio.h:1.90 src/include/stdio.h:1.91
--- src/include/stdio.h:1.90 Fri May 23 12:48:52 2014
+++ src/include/stdio.h Thu Aug 7 13:24:03 2014
@@ -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 @@ __END_DECLS
#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
/*