Source-Changes-HG archive

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

[src/trunk]: src/sys/sys [syzkaller] Change the return type of printf(9)



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

description:
[syzkaller] Change the return type of printf(9)
from 'void' to 'int' for extracting constants with syzkaller

diffstat:

 sys/sys/systm.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 222983a575b0 -r e7b2341a2882 sys/sys/systm.h
--- a/sys/sys/systm.h   Fri Oct 27 09:59:16 2017 +0000
+++ b/sys/sys/systm.h   Fri Oct 27 09:59:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.272 2016/12/22 16:05:15 cherry Exp $       */
+/*     $NetBSD: systm.h,v 1.273 2017/10/27 09:59:17 utkarsh009 Exp $   */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -221,7 +221,7 @@
 
 void   printf_nolog(const char *, ...) __printflike(1, 2);
 
-void   printf(const char *, ...) __printflike(1, 2);
+int    printf(const char *, ...) __printflike(1, 2);
 
 int    snprintf(char *, size_t, const char *, ...) __printflike(3, 4);
 



Home | Main Index | Thread Index | Old Index