projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hush: do not accept "if() { echo; }" function def
[oweals/busybox.git]
/
miscutils
/
setserial.c
diff --git
a/miscutils/setserial.c
b/miscutils/setserial.c
index dfed3306ea3f14a313406e7120ca3365cce70a1a..28a1bef18efb55f98e9454c1780930915aaf8cb9 100644
(file)
--- a/
miscutils/setserial.c
+++ b/
miscutils/setserial.c
@@
-9,11
+9,11
@@
*/
//config:config SETSERIAL
*/
//config:config SETSERIAL
-//config: bool "setserial"
+//config: bool "setserial
(6.6 kb)
"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: default y
//config: select PLATFORM_LINUX
//config: help
-//config:
Retrieve or set Linux serial port.
+//config: Retrieve or set Linux serial port.
//applet:IF_SETSERIAL(APPLET(setserial, BB_DIR_BIN, BB_SUID_DROP))
//applet:IF_SETSERIAL(APPLET(setserial, BB_DIR_BIN, BB_SUID_DROP))
@@
-257,7
+257,7
@@
enum print_mode
#define CTL_CLOSE (1 << 3)
#define CTL_NODIE (1 << 4)
#define CTL_CLOSE (1 << 3)
#define CTL_NODIE (1 << 4)
-static const char serial_types[] =
+static const char serial_types[]
ALIGN1
=
"unknown\0" /* 0 */
"8250\0" /* 1 */
"16450\0" /* 2 */
"unknown\0" /* 0 */
"8250\0" /* 1 */
"16450\0" /* 2 */
@@
-288,7
+288,7
@@
static const char serial_types[] =
# define MAX_SERIAL_TYPE 13
#endif
# define MAX_SERIAL_TYPE 13
#endif
-static const char commands[] =
+static const char commands[]
ALIGN1
=
"spd_normal\0"
"spd_hi\0"
"spd_vhi\0"
"spd_normal\0"
"spd_hi\0"
"spd_vhi\0"
@@
-404,8
+404,8
@@
static const uint16_t setbits[CMD_FLAG_LAST + 1] =
ASYNC_LOW_LATENCY
};
ASYNC_LOW_LATENCY
};
-static const char STR_INFINITE[] = "infinite";
-static const char STR_NONE[] = "none";
+#define STR_INFINITE "infinite"
+#define STR_NONE "none"
static const char *uart_type(int type)
{
static const char *uart_type(int type)
{