diff --git a/src/drivertool.c b/src/drivertool.c index fda635966..cf3060a72 100644 --- a/src/drivertool.c +++ b/src/drivertool.c @@ -110,7 +110,8 @@ struct ioctl_list ioc_type type; }; -static struct ioctl_list n[] = { +static struct ioctl_list n[] = +{ { 0, "FP_SET_BRIGHT", IOC_FP_SET_BRIGHT, TYPE_CHAR }, { 0, "FP_CLEAR_ALL", IOC_FP_CLEAR_ALL, TYPE_UINT }, { 0, "FP_SET_TEXT", IOC_FP_SET_TEXT, TYPE_CHARP }, @@ -236,8 +237,7 @@ int main(int argc, char **argv) ret = 0; /* allow the old VFD_ names for backwards compatibility */ - while (n[i].text != NULL && strcmp(n[i].text, argv[1]) != 0 && - !(strncmp(argv[1], "VFD_", 4) == 0 && strcmp(n[i].text + 2, argv[1] + 3) == 0)) + while (n[i].text != NULL && strcmp(n[i].text, argv[1]) != 0 && !(strncmp(argv[1], "VFD_", 4) == 0 && strcmp(n[i].text + 2, argv[1] + 3) == 0)) i++; if (!n[i].text || (n[i].type != TYPE_UINT_GET && argc < 3))