[BACK]Return to patch-lib_log.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / gift / patches

File: [cvs.NetBSD.org] / pkgsrc / net / gift / patches / patch-lib_log.c (download)

Revision 1.1, Tue Dec 26 11:27:39 2017 UTC (2 years, 11 months ago) by he
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, HEAD

Add a couple of patches:
 * Quiet type conversion warnings by adding const to one of the logging
   functions
 * Don't confuse the C preprocessor by converting one arg into two.
   Fixes build on NetBSD/8.0 with SSP.
Bump PKGREVISION.

$NetBSD: patch-lib_log.c,v 1.1 2017/12/26 11:27:39 he Exp $

Constify, to quiet type conversion warnings.

--- lib/log.c.orig	2004-01-15 14:02:11.000000000 +0000
+++ lib/log.c
@@ -237,7 +237,7 @@ void log_debug (const char *fmt, ...)
 	log_print (LOG_DEBUG, buf);
 }
 
-void log_trace_pfx (char *pfx, char *file, int line, char *func, char *extra)
+void log_trace_pfx (const char *pfx, const char *file, int line, const char *func, const char *extra)
 {
 	free (trace_pfx);
 	trace_pfx   = STRDUP (pfx);