Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ipsec-tools/src/setkey prefix errors with the pr...
details: https://anonhg.NetBSD.org/src/rev/1a9e2ff13031
branches: trunk
changeset: 932530:1a9e2ff13031
user: christos <christos%NetBSD.org@localhost>
date: Sun May 10 19:54:49 2020 +0000
description:
prefix errors with the program name and use stderr.
diffstat:
crypto/dist/ipsec-tools/src/setkey/token.l | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 556a4cb13504 -r 1a9e2ff13031 crypto/dist/ipsec-tools/src/setkey/token.l
--- a/crypto/dist/ipsec-tools/src/setkey/token.l Sun May 10 19:36:49 2020 +0000
+++ b/crypto/dist/ipsec-tools/src/setkey/token.l Sun May 10 19:54:49 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token.l,v 1.23 2019/07/23 04:30:32 ozaki-r Exp $ */
+/* $NetBSD: token.l,v 1.24 2020/05/10 19:54:49 christos Exp $ */
/* $KAME: token.l,v 1.44 2003/10/21 07:20:58 itojun Exp $ */
/*
@@ -49,6 +49,7 @@
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
+#include <err.h>
#include "vchar.h"
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || \
@@ -335,7 +336,7 @@
void
yyerror(const char *s)
{
- printf("line %d: %s at [%s]\n", lineno, s, yytext);
+ warnx("line %d: %s at [%s]", lineno, s, yytext);
}
int
@@ -347,7 +348,7 @@
parse_init();
if (yyparse()) {
- printf("parse failed, line %d.\n", lineno);
+ warnx("line %d: parse failed", lineno);
return(-1);
}
Home |
Main Index |
Thread Index |
Old Index