Subversion Repositories HelenOS

Rev

Rev 2615 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2615 Rev 2785
Line 36... Line 36...
36
    int phoneid;
36
    int phoneid;
37
    int res;
37
    int res;
38
    static int msgid = 1;
38
    static int msgid = 1;
39
    char c;
39
    char c;
40
 
40
 
41
    printf("Select phoneid to send msg: 2-9\n");
41
    printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
42
    do {
42
    do {
43
        c = getchar();
43
        c = getchar();
-
 
44
        if (c == 'Q' || c == 'q')
-
 
45
            return TEST_SKIPPED;
44
    } while (c < '2' || c > '9');
46
    } while (c < '2' || c > '9');
45
    phoneid = c - '0';
47
    phoneid = c - '0';
46
   
48
   
47
    printf("Sending msg...");
49
    printf("Sending msg...");
48
    res = ipc_call_sync_0_0(phoneid, 2000);
50
    res = ipc_call_sync_0_0(phoneid, 2000);