Changeset 1433ecda in mainline for uspace/lib/pcut/src/main.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (6 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/lib/pcut/src/main.c

    r47b2d7e3 r1433ecda  
    5757 * @return Whether @p arg is @p opt followed by a number.
    5858 */
    59 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) {
     59int pcut_is_arg_with_number(const char *arg, const char *opt, int *value)
     60{
    6061        int opt_len = pcut_str_size(opt);
    61         if (! pcut_str_start_equals(arg, opt, opt_len)) {
     62        if (!pcut_str_start_equals(arg, opt, opt_len)) {
    6263                return 0;
    6364        }
     
    7475 * @retval NULL No item with such id exists in the list.
    7576 */
    76 static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id) {
     77static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id)
     78{
    7779        pcut_item_t *it = pcut_get_real(first);
    7880        while (it != NULL) {
     
    9294 * @return Error code.
    9395 */
    94 static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path) {
     96static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path)
     97{
    9598        int is_first_test = 1;
    9699        int total_count = 0;
     
    156159 * @param first First item of the list.
    157160 */
    158 static void set_setup_teardown_callbacks(pcut_item_t *first) {
     161static void set_setup_teardown_callbacks(pcut_item_t *first)
     162{
    159163        pcut_item_t *active_suite = NULL;
    160164        pcut_item_t *it;
     
    188192 * @return Program exit code.
    189193 */
    190 int pcut_main(pcut_item_t *last, int argc, char *argv[]) {
     194int pcut_main(pcut_item_t *last, int argc, char *argv[])
     195{
    191196        pcut_item_t *items = pcut_fix_list_get_real_head(last);
    192197        pcut_item_t *it;
Note: See TracChangeset for help on using the changeset viewer.