diff options
author | gabor <gabor@FreeBSD.org> | 2010-02-03 21:06:13 +0000 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2010-02-03 21:06:13 +0000 |
commit | c499a83bba8f8470ae5c8ef7a572fe3892a87d8c (patch) | |
tree | a520f4b893e0e467f08d027c1ec66a3ca0831a81 /usr.bin/bc/scan.l | |
parent | 5946a34d0729306843325f31f709bca2202425e7 (diff) | |
download | FreeBSD-src-c499a83bba8f8470ae5c8ef7a572fe3892a87d8c.zip FreeBSD-src-c499a83bba8f8470ae5c8ef7a572fe3892a87d8c.tar.gz |
- style(9)
Approved by: delphij (mentor)
Diffstat (limited to 'usr.bin/bc/scan.l')
-rw-r--r-- | usr.bin/bc/scan.l | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l index 9c21fc2..81dd862 100644 --- a/usr.bin/bc/scan.l +++ b/usr.bin/bc/scan.l @@ -193,6 +193,7 @@ ALPHANUM [a-z_0-9] static void init_strbuf(void) { + if (strbuf == NULL) { strbuf = malloc(strbuf_sz); if (strbuf == NULL) @@ -204,7 +205,7 @@ init_strbuf(void) static void add_str(const char *str) { - size_t arglen; + size_t arglen; arglen = strlen(str); @@ -228,8 +229,8 @@ add_str(const char *str) void abort_line(int sig) { - static const char str[] = "[\n]P\n"; - int save_errno; + static const char str[] = "[\n]P\n"; + int save_errno; switch (sig) { default: @@ -243,8 +244,8 @@ abort_line(int sig) int yywrap(void) { - static int state; - static YY_BUFFER_STATE buf; + static YY_BUFFER_STATE buf; + static int state; if (fileindex == 0 && sargc > 0 && strcmp(sargv[0], _PATH_LIBB) == 0) { filename = sargv[fileindex++]; @@ -285,4 +286,3 @@ yywrap(void) } return (1); } - |