aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/adjtimex.c6
-rw-r--r--miscutils/eject.c2
-rw-r--r--miscutils/ionice.c2
-rw-r--r--miscutils/setserial.c8
4 files changed, 9 insertions, 9 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index 534364a69..058aa9a5c 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -29,7 +29,7 @@
29# include <sys/timex.h> 29# include <sys/timex.h>
30#endif 30#endif
31 31
32static const uint16_t statlist_bit[] = { 32static const uint16_t statlist_bit[] ALIGN2 = {
33 STA_PLL, 33 STA_PLL,
34 STA_PPSFREQ, 34 STA_PPSFREQ,
35 STA_PPSTIME, 35 STA_PPSTIME,
@@ -45,7 +45,7 @@ static const uint16_t statlist_bit[] = {
45 STA_CLOCKERR, 45 STA_CLOCKERR,
46 0 46 0
47}; 47};
48static const char statlist_name[] = 48static const char statlist_name[] ALIGN1 =
49 "PLL" "\0" 49 "PLL" "\0"
50 "PPSFREQ" "\0" 50 "PPSFREQ" "\0"
51 "PPSTIME" "\0" 51 "PPSTIME" "\0"
@@ -61,7 +61,7 @@ static const char statlist_name[] =
61 "CLOCKERR" 61 "CLOCKERR"
62; 62;
63 63
64static const char ret_code_descript[] = 64static const char ret_code_descript[] ALIGN1 =
65 "clock synchronized" "\0" 65 "clock synchronized" "\0"
66 "insert leap second" "\0" 66 "insert leap second" "\0"
67 "delete leap second" "\0" 67 "delete leap second" "\0"
diff --git a/miscutils/eject.c b/miscutils/eject.c
index e33d79127..16ae250ff 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -40,7 +40,7 @@
40#if ENABLE_FEATURE_EJECT_SCSI 40#if ENABLE_FEATURE_EJECT_SCSI
41static void eject_scsi(const char *dev) 41static void eject_scsi(const char *dev)
42{ 42{
43 static const char sg_commands[3][6] = { 43 static const char sg_commands[3][6] ALIGN1 = {
44 { ALLOW_MEDIUM_REMOVAL, 0, 0, 0, 0, 0 }, 44 { ALLOW_MEDIUM_REMOVAL, 0, 0, 0, 0, 0 },
45 { START_STOP, 0, 0, 0, 1, 0 }, 45 { START_STOP, 0, 0, 0, 1, 0 },
46 { START_STOP, 0, 0, 0, 2, 0 } 46 { START_STOP, 0, 0, 0, 2, 0 }
diff --git a/miscutils/ionice.c b/miscutils/ionice.c
index bd300605f..0c14256ab 100644
--- a/miscutils/ionice.c
+++ b/miscutils/ionice.c
@@ -41,7 +41,7 @@ enum {
41 IOPRIO_CLASS_IDLE 41 IOPRIO_CLASS_IDLE
42}; 42};
43 43
44static const char to_prio[] = "none\0realtime\0best-effort\0idle"; 44static const char to_prio[] ALIGN1 = "none\0realtime\0best-effort\0idle";
45 45
46#define IOPRIO_CLASS_SHIFT 13 46#define IOPRIO_CLASS_SHIFT 13
47 47
diff --git a/miscutils/setserial.c b/miscutils/setserial.c
index dfed3306e..8b5c4a9c7 100644
--- a/miscutils/setserial.c
+++ b/miscutils/setserial.c
@@ -257,7 +257,7 @@ enum print_mode
257#define CTL_CLOSE (1 << 3) 257#define CTL_CLOSE (1 << 3)
258#define CTL_NODIE (1 << 4) 258#define CTL_NODIE (1 << 4)
259 259
260static const char serial_types[] = 260static const char serial_types[] ALIGN1 =
261 "unknown\0" /* 0 */ 261 "unknown\0" /* 0 */
262 "8250\0" /* 1 */ 262 "8250\0" /* 1 */
263 "16450\0" /* 2 */ 263 "16450\0" /* 2 */
@@ -288,7 +288,7 @@ static const char serial_types[] =
288# define MAX_SERIAL_TYPE 13 288# define MAX_SERIAL_TYPE 13
289#endif 289#endif
290 290
291static const char commands[] = 291static const char commands[] ALIGN1 =
292 "spd_normal\0" 292 "spd_normal\0"
293 "spd_hi\0" 293 "spd_hi\0"
294 "spd_vhi\0" 294 "spd_vhi\0"
@@ -404,8 +404,8 @@ static const uint16_t setbits[CMD_FLAG_LAST + 1] =
404 ASYNC_LOW_LATENCY 404 ASYNC_LOW_LATENCY
405}; 405};
406 406
407static const char STR_INFINITE[] = "infinite"; 407#define STR_INFINITE "infinite"
408static const char STR_NONE[] = "none"; 408#define STR_NONE "none"
409 409
410static const char *uart_type(int type) 410static const char *uart_type(int type)
411{ 411{