Changeset 1433ecda in mainline for uspace/app/vuhid/main.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/vuhid/main.c

    r47b2d7e3 r1433ecda  
    145145
    146146static struct option long_options[] = {
    147         {"help", optional_argument, NULL, 'h'},
    148         {"controller", required_argument, NULL, 'c' },
    149         {"list", no_argument, NULL, 'l' },
    150         {0, 0, NULL, 0}
     147        { "help", optional_argument, NULL, 'h' },
     148        { "controller", required_argument, NULL, 'c' },
     149        { "list", no_argument, NULL, 'l' },
     150        { 0, 0, NULL, 0 }
    151151};
    152152static const char *short_options = "hc:l";
    153153
    154 static void print_help(const char* name, const char* module)
     154static void print_help(const char *name, const char *module)
    155155{
    156156        if (module == NULL) {
     
    172172{
    173173        printf("Available devices:\n");
    174         for (vuhid_interface_t **i = available_hid_interfaces; *i != NULL; ++i)
    175         {
     174        for (vuhid_interface_t * *i = available_hid_interfaces; *i != NULL; ++i) {
    176175                printf("\t`%s'\t%s\n", (*i)->id, (*i)->name);
    177176        }
     
    181180static const char *controller = DEFAULT_CONTROLLER;
    182181
    183 int main(int argc, char * argv[])
     182int main(int argc, char *argv[])
    184183{
    185184
     
    191190        int opt = 0;
    192191        while ((opt = getopt_long(argc, argv, short_options, long_options, NULL)) > 0) {
    193                 switch (opt)
    194                 {
     192                switch (opt) {
    195193                case 'h':
    196194                        print_help(*argv, optarg);
     
    229227                usb_log_debug("Found extra descriptor: %s.",
    230228                    usb_debug_str_buffer(
    231                         hid_dev.descriptors->configuration->extra[i].data,
    232                         hid_dev.descriptors->configuration->extra[i].length,
    233                         0));
     229                    hid_dev.descriptors->configuration->extra[i].data,
     230                    hid_dev.descriptors->configuration->extra[i].length,
     231                    0));
    234232        }
    235233
Note: See TracChangeset for help on using the changeset viewer.