summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-12-15 19:46:30 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-12-15 19:46:30 +0000
commitba604df54f94222463b0e981c098162731a6f57e (patch)
tree87e354448d526322341d1a51b393235ee4c82843 /usr.bin
parent33765cfb243b35de541571250febde9d634fce8d (diff)
turns out gcc is not smart enough to avoid the local array in const
char msg[] = "string literal" if you do not declare it static. shaves off a few bytes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/bc/scan.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l
index fee5aa990b8..51a091bd182 100644
--- a/usr.bin/bc/scan.l
+++ b/usr.bin/bc/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.21 2006/03/18 20:44:43 otto Exp $ */
+/* $OpenBSD: scan.l,v 1.22 2008/12/15 19:46:29 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -18,7 +18,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: scan.l,v 1.21 2006/03/18 20:44:43 otto Exp $";
+static const char rcsid[] = "$OpenBSD: scan.l,v 1.22 2008/12/15 19:46:29 otto Exp $";
#endif /* not lint */
#include <err.h>
@@ -229,7 +229,7 @@ add_str(const char *str)
void
abort_line(int sig)
{
- const char str[] = "[\n]P\n";
+ static const char str[] = "[\n]P\n";
int save_errno;
save_errno = errno;