aboutsummaryrefslogtreecommitdiff
path: root/libexec/rbootd
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2004-08-21 07:23:41 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2004-08-21 07:23:41 +0000
commit9f09e3bbc66129431e4fdfc37665f5c52a3078e0 (patch)
tree6e36512cb342227c212a1ebb2eee58811dccc41e /libexec/rbootd
parent17211a5f9a0963117be5a2aef12bcaa8312b2cc6 (diff)
downloadsrc-9f09e3bbc66129431e4fdfc37665f5c52a3078e0.tar.gz
src-9f09e3bbc66129431e4fdfc37665f5c52a3078e0.zip
Avoid accidental use of ANSI C trigraphs.
Spotted by: Pawel Worach Obtained from: NetBSD (rev. 1.11, 1.13)
Notes
Notes: svn path=/head/; revision=134102
Diffstat (limited to 'libexec/rbootd')
-rw-r--r--libexec/rbootd/rbootd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rbootd/rbootd.c b/libexec/rbootd/rbootd.c
index 78a4fd6bd5f9..942c7cb7133c 100644
--- a/libexec/rbootd/rbootd.c
+++ b/libexec/rbootd/rbootd.c
@@ -151,7 +151,8 @@ main(int argc, char *argv[])
char *errmsg;
if ((IntfName = BpfGetIntfName(&errmsg)) == NULL) {
- syslog(LOG_NOTICE, "restarted (??)");
+ /* Backslash to avoid trigraph '??)'. */
+ syslog(LOG_NOTICE, "restarted (?\?)");
/* BpfGetIntfName() returns safe names, using %m */
syslog(LOG_ERR, "%s", errmsg);
Exit(0);