Changeset 850fd32 in mainline for uspace/app


Ignore:
Timestamp:
2018-03-11T01:21:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84239b1, f0e825d
Parents:
338d54a7
Message:

Fix mischievious semicolons.

Location:
uspace/app
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/util.c

    r338d54a7 r850fd32  
    4545        unsigned int i;
    4646
    47         for (i=0; args[i] != NULL; i++);
     47        i = 0;
     48        while (args[i] != NULL)
     49                i++;
     50
    4851        return i;
    4952}
  • uspace/app/edit/edit.c

    r338d54a7 r850fd32  
    655655
    656656                        /* Handle key press. */
    657                         if (((kev->mods & KM_ALT) == 0) &&
    658                              (kev->mods & KM_CTRL) != 0) {
    659                                 ;
    660                         } else if ((kev->mods & (KM_CTRL | KM_ALT)) == 0) {
     657                        if ((kev->mods & (KM_CTRL | KM_ALT)) == 0) {
    661658                                switch (kev->key) {
    662659                                case KC_ESCAPE:
  • uspace/app/sbi/src/run_expr.c

    r338d54a7 r850fd32  
    384384                         */
    385385                        sobj = proc_ar->obj;
    386                         aobj = sobj->u.object_v;;
     386                        aobj = sobj->u.object_v;
    387387                }
    388388
  • uspace/app/sbi/src/run_texpr.c

    r338d54a7 r850fd32  
    9999        stree_symbol_t *sym;
    100100        tdata_item_t *targ_i = NULL;
    101         tdata_item_t *titem = NULL;;
     101        tdata_item_t *titem = NULL;
    102102        tdata_object_t *tobject;
    103103        tdata_deleg_t *tdeleg;
  • uspace/app/tester/float/float2.c

    r338d54a7 r850fd32  
    449449                }
    450450        }
    451 ;
     451
    452452        for (unsigned int i = 0; i < OPERANDS; i++) {
    453453                double res = sinh(arguments_exp[i]);
  • uspace/app/usbinfo/main.c

    r338d54a7 r850fd32  
    153153         */
    154154        int opt;
     155        int idx;
    155156        do {
    156157                opt = getopt_long(argc, argv,
     
    168169                                print_usage(argv[0]);
    169170                                return 0;
    170                         default: {
    171                                 int idx = 0;
     171                        default:
     172                                idx = 0;
    172173                                while (actions[idx].opt != 0) {
    173174                                        if (actions[idx].opt == opt) {
     
    179180                                }
    180181                                break;
    181                         }
    182182                }
    183183        } while (opt > 0);
  • uspace/app/wavplay/dplay.c

    r338d54a7 r850fd32  
    176176        }
    177177
    178         for (pb->playing = true; pb->playing;
    179             fibril_condvar_wait(&pb->cv, &pb->mutex));
     178        pb->playing = true;
     179        while (pb->playing)
     180                fibril_condvar_wait(&pb->cv, &pb->mutex);
    180181
    181182        fibril_mutex_unlock(&pb->mutex);
  • uspace/app/wavplay/main.c

    r338d54a7 r850fd32  
    260260                        print_help(*argv);
    261261                        return 0;
    262                 };
     262                }
    263263        }
    264264
Note: See TracChangeset for help on using the changeset viewer.