Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs [syzkaller] Cast all the printf's to (void *)



details:   https://anonhg.NetBSD.org/src/rev/90fb30953ff7
branches:  trunk
changeset: 827414:90fb30953ff7
user:      utkarsh009 <utkarsh009%NetBSD.org@localhost>
date:      Fri Oct 27 09:59:17 2017 +0000

description:
[syzkaller] Cast all the printf's to (void *)
> as a result of new printf(9) declaration.

diffstat:

 sys/ufs/ufs/ufs_lookup.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e7b2341a2882 -r 90fb30953ff7 sys/ufs/ufs/ufs_lookup.c
--- a/sys/ufs/ufs/ufs_lookup.c  Fri Oct 27 09:59:16 2017 +0000
+++ b/sys/ufs/ufs/ufs_lookup.c  Fri Oct 27 09:59:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_lookup.c,v 1.146 2017/03/30 09:11:45 hannken Exp $ */
+/*     $NetBSD: ufs_lookup.c,v 1.147 2017/10/27 09:59:17 utkarsh009 Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.146 2017/03/30 09:11:45 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.147 2017/10/27 09:59:17 utkarsh009 Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ffs.h"
@@ -700,7 +700,7 @@
 {
        struct mount *mp = ITOV(ip)->v_mount;
        void (*p)(const char  *, ...) __printflike(1, 2) =
-           (mp->mnt_flag & MNT_RDONLY) == 0 ? panic : printf;
+           (mp->mnt_flag & MNT_RDONLY) == 0 ? panic : (void *)printf;
 
        (*p)("%s: bad dir ino %ju at offset %d: %s\n",
            mp->mnt_stat.f_mntonname, (uintmax_t)ip->i_number,



Home | Main Index | Thread Index | Old Index