diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-12 11:43:51 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-12 11:43:51 +0000 |
commit | 5a6d987ebb94ecc428b0902fcfd8e69a864e39a8 (patch) | |
tree | 43efd30b063c6e107a081a57cb5349f9bb20471c /usr.bin | |
parent | f26da2481c122a41d8ac262a62c43dc2578b7b8c (diff) |
spacing
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/bgplg/bgplg.c | 8 | ||||
-rw-r--r-- | usr.bin/bgplg/bgplg.css | 3 | ||||
-rw-r--r-- | usr.bin/bgplg/bgplgsh.c | 6 | ||||
-rw-r--r-- | usr.bin/bgplg/misc.c | 6 |
4 files changed, 11 insertions, 12 deletions
diff --git a/usr.bin/bgplg/bgplg.c b/usr.bin/bgplg/bgplg.c index 8de712be157..489df8dbfcf 100644 --- a/usr.bin/bgplg/bgplg.c +++ b/usr.bin/bgplg/bgplg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgplg.c,v 1.2 2006/12/12 11:37:55 reyk Exp $ */ +/* $OpenBSD: bgplg.c,v 1.3 2006/12/12 11:43:50 reyk Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net> @@ -61,7 +61,7 @@ lg_urldecode(char *str) i = c = 0; while (i < len) { if (str[i] == '%' && i <= (len - 2)) { - if (isxdigit(str[i + 1]) && + if (isxdigit(str[i + 1]) && isxdigit(str[i + 2])) { code[0] = str[i + 1]; code[1] = str[i + 2]; @@ -108,8 +108,8 @@ lg_getenv(const char *name, int *lenp) *lenp = len; #define allowed_in_string(_x) \ - ((isalnum(_x) || isprint(_x)) && \ - (_x != '%' && _x != '\\' && _x != ';' && _x != '|')) + ((isalnum(_x) || isprint(_x)) && \ + (_x != '%' && _x != '\\' && _x != ';' && _x != '|')) for (i = 0; i < len; i++) { if (!allowed_in_string(ptr[i])) { diff --git a/usr.bin/bgplg/bgplg.css b/usr.bin/bgplg/bgplg.css index d7322b277e2..054a6768722 100644 --- a/usr.bin/bgplg/bgplg.css +++ b/usr.bin/bgplg/bgplg.css @@ -2,8 +2,7 @@ text-align: left; width: 100%; } - img { - border: none; + border: none; border-width: 0px; } diff --git a/usr.bin/bgplg/bgplgsh.c b/usr.bin/bgplg/bgplgsh.c index ef719699ce6..853a4441688 100644 --- a/usr.bin/bgplg/bgplgsh.c +++ b/usr.bin/bgplg/bgplgsh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgplgsh.c,v 1.1 2006/12/11 23:10:10 reyk Exp $ */ +/* $OpenBSD: bgplgsh.c,v 1.2 2006/12/12 11:43:50 reyk Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net> @@ -59,8 +59,8 @@ lg_checkarg(char *arg) return (0); #define allowed_in_string(_x) \ - ((isalnum(_x) || isprint(_x)) && \ - (_x != '%' && _x != '\\' && _x != ';' && _x != '&' && _x != '|')) + ((isalnum(_x) || isprint(_x)) && \ + (_x != '%' && _x != '\\' && _x != ';' && _x != '&' && _x != '|')) for (i = 0; i < len; i++) { if (!allowed_in_string(arg[i])) { diff --git a/usr.bin/bgplg/misc.c b/usr.bin/bgplg/misc.c index f62bf31dd85..e65b3795117 100644 --- a/usr.bin/bgplg/misc.c +++ b/usr.bin/bgplg/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.1 2006/12/11 23:10:10 reyk Exp $ */ +/* $OpenBSD: misc.c,v 1.2 2006/12/12 11:43:50 reyk Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net> @@ -42,7 +42,7 @@ lg_show_version(struct cmd *cmds, char **argv) if (uname(&uts) == 0) printf("%s %s (%s)\n\n", uts.sysname, uts.release, uts.machine); printf("%s - %s\n", NAME, BRIEF); - return (0); + return (0); } int @@ -127,7 +127,7 @@ lg_exec(const char *file, char **new_argv) bzero(&it, sizeof(it)); it.it_value.tv_sec = BGPLG_TIMEOUT; setitimer(ITIMER_REAL, &it, NULL); - + waitpid(child, &status, 0); break; } |