Commit d7cf430c authored by Tracey Dent's avatar Tracey Dent Committed by Greg Kroah-Hartman

Staging: speakup: i18n.c: cleaned up file

Cleaned up file with the use of checkpatch.pl.
Signed-off-by: default avatarTracey Dent <tdent48227@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 801089e6
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "spk_priv.h" #include "spk_priv.h"
static char *speakup_msgs[MSG_LAST_INDEX]; static char *speakup_msgs[MSG_LAST_INDEX];
static char *speakup_default_msgs [MSG_LAST_INDEX] = { static char *speakup_default_msgs[MSG_LAST_INDEX] = {
[MSG_BLANK] = "blank", [MSG_BLANK] = "blank",
[MSG_IAM_ALIVE] = "I'm aLive!", [MSG_IAM_ALIVE] = "I'm aLive!",
[MSG_YOU_KILLED_SPEAKUP] = "You killed speakup!", [MSG_YOU_KILLED_SPEAKUP] = "You killed speakup!",
...@@ -349,7 +349,7 @@ static char *speakup_default_msgs [MSG_LAST_INDEX] = { ...@@ -349,7 +349,7 @@ static char *speakup_default_msgs [MSG_LAST_INDEX] = {
[MSG_FUNCNAME_WORD_SAY_PREVIOUS] = "word, say previous", [MSG_FUNCNAME_WORD_SAY_PREVIOUS] = "word, say previous",
}; };
static struct msg_group_t all_groups [] = { static struct msg_group_t all_groups[] = {
{ {
.name = "ctl_keys", .name = "ctl_keys",
.start = MSG_CTL_START, .start = MSG_CTL_START,
...@@ -549,7 +549,7 @@ ssize_t msg_set(enum msg_index_t index, char *text, size_t length) ...@@ -549,7 +549,7 @@ ssize_t msg_set(enum msg_index_t index, char *text, size_t length)
memcpy(newstr, text, length); memcpy(newstr, text, length);
newstr[length] = '\0'; newstr[length] = '\0';
if ((index >= MSG_FORMATTED_START && index <= MSG_FORMATTED_END) if ((index >= MSG_FORMATTED_START && index <= MSG_FORMATTED_END)
&& ! fmt_validate(speakup_default_msgs[index], newstr)) { && !fmt_validate(speakup_default_msgs[index], newstr)) {
return -EINVAL; return -EINVAL;
} }
spk_lock(flags); spk_lock(flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment