hust testsuite: fix a false positive
[oweals/busybox.git] / miscutils / setserial.c
index 1574e3afd8e92e28b18e6428cfe4f48e9f244f00..8b5c4a9c764b1173c8555fe7e34677ddc7e4b6f4 100644 (file)
@@ -11,7 +11,7 @@
 //config:config SETSERIAL
 //config:      bool "setserial"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Retrieve or set Linux serial port.
 
@@ -214,7 +214,7 @@ struct serial_struct {
 //usage:#define setserial_full_usage "\n\n"
 //usage:       "Request or set Linux serial port information\n"
 //usage:       "\n"
-//usage:       "       -g      Interpret parameters as list of devices for reporting"
+//usage:       "       -g      Interpret parameters as list of devices for reporting\n"
 //usage:       "       -a      Print all available information\n"
 //usage:       "       -b      Print summary information\n"
 //usage:       "       -G      Print in form which can be fed back\n"
@@ -223,7 +223,7 @@ struct serial_struct {
 //usage:       "       -v      Verbose\n"
 //usage:       "\n"
 //usage:       "Parameters: (* = takes an argument, ^ = can be turned off by preceding ^)\n"
-//usage:       "       *port, *irq, *divisor, *uart, *baund_base, *close_delay, *closing_wait,\n"
+//usage:       "       *port, *irq, *divisor, *uart, *baud_base, *close_delay, *closing_wait,\n"
 //usage:       "       ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout,\n"
 //usage:       "       ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig,\n"
 //usage:       "       spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust\n"
@@ -257,7 +257,7 @@ enum print_mode
 #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 */
@@ -288,7 +288,7 @@ static const char serial_types[] =
 # define MAX_SERIAL_TYPE       13
 #endif
 
-static const char commands[] =
+static const char commands[] ALIGN1 =
        "spd_normal\0"
        "spd_hi\0"
        "spd_vhi\0"
@@ -311,7 +311,7 @@ static const char commands[] =
        "irq\0"
        "divisor\0"
        "uart\0"
-       "baund_base\0"
+       "baud_base\0"
        "close_delay\0"
        "closing_wait\0"
 
@@ -404,8 +404,8 @@ static const uint16_t setbits[CMD_FLAG_LAST + 1] =
        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)
 {