mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
drivertool: formatting code using astyle
Origin commit data
------------------
Commit: d5c03f5f85
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-07-05 (Mon, 05 Jul 2021)
Origin message was:
------------------
- drivertool: formatting code using astyle
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user