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 2004-08-21 07:23:41 +00:00
parent 690161113f
commit 6c3a896977

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