Changeset 102f641 in mainline for uspace/app


Ignore:
Timestamp:
2019-09-02T19:01:50Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
25697163
Parents:
241f1985
Message:

Correcting syntax according to ccheck

Location:
uspace/app
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/getterm/getterm.c

    r241f1985 r102f641  
    177177                return rc;
    178178        }
    179        
     179
    180180        rc = task_wait(&twait, NULL, NULL);
    181181        if (rc != EOK) {
  • uspace/app/sysctl/main.c

    r241f1985 r102f641  
    4141#include <fibril.h>
    4242
    43 
    4443#define NAME "sysctl"
    4544#define NAME_BUFFER 256
     
    4847        const char *name;
    4948        int args;
    50         int (* handler)(int, char **);
     49        int (*handler)(int, char **);
    5150} command_t;
    5251
     
    9190                printf("%-25s\t%s\n", name, unit_state(state));
    9291                continue;
    93 fail:
     92
     93        fail:
    9494                printf(" -- unit skipped due to IPC error (%s) --\n",
    9595                    str_error(rc));
     
    176176        }
    177177}
    178 
    179178
    180179int main(int argc, char *argv[])
  • uspace/app/tester/proc/dummy_task.c

    r241f1985 r102f641  
    3737#include "common.h"
    3838
    39 typedef void (* behavior_func_t)(void);
     39typedef void (*behavior_func_t)(void);
    4040
    4141typedef struct {
  • uspace/app/tester/proc/task_anywait.c

    r241f1985 r102f641  
    166166        /* --- */
    167167
    168 
    169168        TPRINTF("All task waiting tests finished");
    170169
  • uspace/app/tester/proc/task_wait.c

    r241f1985 r102f641  
    3636#include "common.h"
    3737
    38 
    3938const char *test_proc_task_wait(void)
    4039{
     
    5453
    5554        TPRINTF("waiting...");
    56         texit = TASK_EXIT_RUNNING; retval = 255;
    57         rc = task_wait(&wait, &texit, &retval);
    58         TPRINTF("done.\n");
    59         TASSERT(rc == EOK);
    60         TASSERT(task_wait_get(&wait) == 0);
    61         TASSERT(texit == TASK_EXIT_UNEXPECTED);
    62         TPRINTF("OK\n");
    63         /* ---- */
    64        
     55        texit = TASK_EXIT_RUNNING;
     56        retval = 255;
     57        rc = task_wait(&wait, &texit, &retval);
     58        TPRINTF("done.\n");
     59        TASSERT(rc == EOK);
     60        TASSERT(task_wait_get(&wait) == 0);
     61        TASSERT(texit == TASK_EXIT_UNEXPECTED);
     62        TPRINTF("OK\n");
     63        /* ---- */
     64
    6565        TPRINTF("12 lost wait\n");
    6666
     
    7070
    7171        TPRINTF("waiting...");
    72         texit = TASK_EXIT_RUNNING; retval = 255;
     72        texit = TASK_EXIT_RUNNING;
     73        retval = 255;
    7374        rc = task_wait(&wait, &texit, &retval);
    7475        TPRINTF("done.\n");
     
    8586
    8687        TPRINTF("waiting...");
    87         texit = TASK_EXIT_RUNNING; retval = 255;
     88        texit = TASK_EXIT_RUNNING;
     89        retval = 255;
    8890        rc = task_wait(&wait, &texit, &retval);
    8991        TPRINTF("done.\n");
     
    103105
    104106        TPRINTF("waiting...");
    105         texit = TASK_EXIT_RUNNING; retval = 255;
     107        texit = TASK_EXIT_RUNNING;
     108        retval = 255;
    106109        rc = task_wait(&wait, &texit, &retval);
    107110        TPRINTF("done.\n");
     
    120123
    121124        TPRINTF("waiting...");
    122         texit = TASK_EXIT_RUNNING; retval = 255;
     125        texit = TASK_EXIT_RUNNING;
     126        retval = 255;
    123127        rc = task_wait(&wait, &texit, &retval);
    124128        TPRINTF("done.\n");
     
    138142
    139143        TPRINTF("waiting...");
    140         texit = TASK_EXIT_RUNNING; retval = 255;
     144        texit = TASK_EXIT_RUNNING;
     145        retval = 255;
    141146        rc = task_wait(&wait, &texit, &retval);
    142147        TPRINTF("done.\n");
     
    156161
    157162        TPRINTF("waiting...");
    158         texit = TASK_EXIT_RUNNING; retval = 255;
     163        texit = TASK_EXIT_RUNNING;
     164        retval = 255;
    159165        rc = task_wait(&wait, &texit, &retval);
    160166        TPRINTF("done.\n");
     
    166172        /* ---- */
    167173
    168 
    169174        TPRINTF("32 keep retval until exit\n");
    170175
     
    174179
    175180        TPRINTF("waiting...");
    176         texit = TASK_EXIT_RUNNING; retval = 255;
     181        texit = TASK_EXIT_RUNNING;
     182        retval = 255;
    177183        rc = task_wait(&wait, &texit, &retval);
    178184        TPRINTF("done.\n");
     
    195201
    196202        TPRINTF("waiting...");
    197         texit = TASK_EXIT_RUNNING; retval = 255;
     203        texit = TASK_EXIT_RUNNING;
     204        retval = 255;
    198205        rc = task_wait(&wait, &texit, &retval);
    199206        TPRINTF("done.\n");
     
    212219
    213220        TPRINTF("waiting...");
    214         texit = TASK_EXIT_RUNNING; retval = 255;
     221        texit = TASK_EXIT_RUNNING;
     222        retval = 255;
    215223        rc = task_wait(&wait, &texit, &retval);
    216224        TPRINTF("done.\n");
     
    229237
    230238        TPRINTF("waiting...");
    231         texit = TASK_EXIT_RUNNING; retval = 255;
     239        texit = TASK_EXIT_RUNNING;
     240        retval = 255;
    232241        rc = task_wait(&wait, &texit, &retval);
    233242        TPRINTF("done.\n");
     
    237246        task_kill(tid); /* Terminate daemon */
    238247        TPRINTF("waiting 2...");
    239         texit = TASK_EXIT_RUNNING; retval = 255;
     248        texit = TASK_EXIT_RUNNING;
     249        retval = 255;
    240250        rc = task_wait(&wait, &texit, &retval);
    241251        TPRINTF("done.\n");
     
    253263
    254264        TPRINTF("waiting...");
    255         texit = TASK_EXIT_RUNNING; retval = 255;
     265        texit = TASK_EXIT_RUNNING;
     266        retval = 255;
    256267        rc = task_wait(&wait, &texit, &retval);
    257268        TPRINTF("done.\n");
     
    264275
    265276        TPRINTF("All task waiting tests finished");
    266 
    267 
    268277
    269278        return err;
  • uspace/app/tester/tester.c

    r241f1985 r102f641  
    8181#include "proc/task_anywait.def"
    8282#include "proc/task_wait.def"
    83         {NULL, NULL, NULL, false}
     83        { NULL, NULL, NULL, false }
    8484};
    8585
  • uspace/app/tester/tester.h

    r241f1985 r102f641  
    8080        } while (0)
    8181
    82 
    8382typedef const char *(*test_entry_t)(void);
    8483
  • uspace/app/vlaunch/vlaunch.c

    r241f1985 r102f641  
    7373                return -1;
    7474        }
    75        
     75
    7676        int retval;
    7777        rc = task_wait(&wait, NULL, &retval);
Note: See TracChangeset for help on using the changeset viewer.