summaryrefslogtreecommitdiff
path: root/sys/kern/subr_scanf.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-02-14 20:58:21 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-02-14 20:58:21 +0000
commitef528b292a1630416ae15147d3beafc08246ce8e (patch)
tree38f1f681454f6c9e228d982fded94aa9772a23e8 /sys/kern/subr_scanf.c
parent05440e6882fb6ab61c9b096a071a457d8334599a (diff)
Notes
Diffstat (limited to 'sys/kern/subr_scanf.c')
-rw-r--r--sys/kern/subr_scanf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_scanf.c b/sys/kern/subr_scanf.c
index b24d7baa3ceb..6d65d98720bf 100644
--- a/sys/kern/subr_scanf.c
+++ b/sys/kern/subr_scanf.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: subr_scanf.c,v 1.3 1999/01/28 00:57:47 dillon Exp $
+ * $Id: subr_scanf.c,v 1.4 1999/01/29 08:09:32 dillon Exp $
* From: Id: vfscanf.c,v 1.13 1998/09/25 12:20:27 obrien Exp
*/
@@ -323,7 +323,7 @@ literal:
/* take only those things in the class */
if (flags & SUPPRESS) {
n = 0;
- while (ccltab[(int)(unsigned char)*inp]) {
+ while (ccltab[(unsigned char)*inp]) {
n++, inr--, inp++;
if (--width == 0)
break;
@@ -337,7 +337,7 @@ literal:
goto match_failure;
} else {
p0 = p = va_arg(ap, char *);
- while (ccltab[(int)(unsigned char)*inp]) {
+ while (ccltab[(unsigned char)*inp]) {
inr--;
*p++ = *inp++;
if (--width == 0)