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

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

Revision 1.1, Tue Dec 26 11:27:39 2017 UTC (3 years, 3 months ago) by he
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, 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
 * Don't confuse the C preprocessor by converting one arg into two.
   Fixes build on NetBSD/8.0 with SSP.

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

Constify, to quiet type conversion warnings.

--- lib/log.h.orig	2003-12-23 04:22:53.000000000 +0000
+++ lib/log.h
@@ -194,7 +194,7 @@ LIBGIFT_EXPORT
   void log_debug     (const char *fmt, ...) GIFT_FMTATTR (1, 2);
-  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);
   void log_trace     (const char *fmt, ...) GIFT_FMTATTR (1, 2);