Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssh/dist Add some missing __attribut...
details: https://anonhg.NetBSD.org/src/rev/14fa844ee584
branches: trunk
changeset: 346793:14fa844ee584
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Wed Aug 03 15:24:28 2016 +0000
description:
Add some missing __attribute__((format(printf annotations.
diffstat:
crypto/external/bsd/openssh/dist/utf8.c | 7 ++++---
crypto/external/bsd/openssh/dist/utf8.h | 3 ++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r a1921ca49400 -r 14fa844ee584 crypto/external/bsd/openssh/dist/utf8.c
--- a/crypto/external/bsd/openssh/dist/utf8.c Wed Aug 03 13:09:43 2016 +0000
+++ b/crypto/external/bsd/openssh/dist/utf8.c Wed Aug 03 15:24:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utf8.c,v 1.2 2016/08/02 13:45:12 christos Exp $ */
+/* $NetBSD: utf8.c,v 1.3 2016/08/03 15:24:28 jakllsch Exp $ */
/* $OpenBSD: utf8.c,v 1.3 2016/05/30 12:57:21 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze%openbsd.org@localhost>
@@ -17,7 +17,7 @@
*/
#include "includes.h"
-__RCSID("$NetBSD: utf8.c,v 1.2 2016/08/02 13:45:12 christos Exp $");
+__RCSID("$NetBSD: utf8.c,v 1.3 2016/08/03 15:24:28 jakllsch Exp $");
/*
* Utility functions for multibyte-character handling,
* in particular to sanitize untrusted strings for terminal output.
@@ -37,7 +37,8 @@
static int dangerous_locale(void);
static int grow_dst(char **, size_t *, size_t, char **, size_t);
-static int vasnmprintf(char **, size_t, int *, const char *, va_list);
+static int vasnmprintf(char **, size_t, int *, const char *, va_list)
+ __attribute__((format(printf, 4, 0)));
/*
diff -r a1921ca49400 -r 14fa844ee584 crypto/external/bsd/openssh/dist/utf8.h
--- a/crypto/external/bsd/openssh/dist/utf8.h Wed Aug 03 13:09:43 2016 +0000
+++ b/crypto/external/bsd/openssh/dist/utf8.h Wed Aug 03 15:24:28 2016 +0000
@@ -19,6 +19,7 @@
__attribute__((format(printf, 1, 2)));
int fmprintf(FILE *, const char *, ...)
__attribute__((format(printf, 2, 3)));
-int vfmprintf(FILE *, const char *, va_list);
+int vfmprintf(FILE *, const char *, va_list)
+ __attribute__((format(printf, 2, 0)));
int snmprintf(char *, size_t, int *, const char *, ...)
__attribute__((format(printf, 4, 5)));
Home |
Main Index |
Thread Index |
Old Index