Module Name: src
Committed By: christos
Date: Thu Mar 17 00:42:49 UTC 2016
Modified Files:
src/include: stdio.h
Log Message:
gcc 5, my patience is waning.
To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 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.96 src/include/stdio.h:1.97
--- src/include/stdio.h:1.96 Tue Mar 24 03:44:52 2015
+++ src/include/stdio.h Wed Mar 16 20:42:49 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: stdio.h,v 1.96 2015/03/24 07:44:52 wiz Exp $ */
+/* $NetBSD: stdio.h,v 1.97 2016/03/17 00:42:49 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -483,7 +483,7 @@ static __inline int __sputc(int _c, FILE
#define __sfeof(p) (((p)->_flags & __SEOF) != 0)
#define __sferror(p) (((p)->_flags & __SERR) != 0)
-#define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF)))
+#define __sclearerr(p) ((void)((p)->_flags &= (unsigned short)~(__SERR|__SEOF)))
#define __sfileno(p) \
((p)->_file == -1 ? -1 : (int)(unsigned short)(p)->_file)