Avoid accidental use of ANSI C trigraphs.

Spotted by:	Pawel Worach
Obtained from:	NetBSD (rev. 1.11, 1.13)
This commit is contained in:
Maxim Konovalov 2004-08-21 07:23:41 +00:00
parent 17211a5f9a
commit 9f09e3bbc6

View File

@ -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);