mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- drivertool: formatting code using astyle
Signed-off-by: Thilo Graf <dbt@novatux.de>
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