Rev 2785 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2785 | Rev 2786 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | { |
39 | { |
40 | int phoneid; |
40 | int phoneid; |
41 | static int msgid = 1; |
41 | static int msgid = 1; |
42 | char c; |
42 | char c; |
43 | 43 | ||
44 | printf("Select phoneid to send msg: 2-9 (Q to skip)\n"); |
44 | printf("Select phoneid to send msg: 2-9 (q to skip)\n"); |
45 | do { |
45 | do { |
46 | c = getchar(); |
46 | c = getchar(); |
47 | if (c == 'Q' || c == 'q') |
47 | if ((c == 'Q') || (c == 'q')) |
48 | return TEST_SKIPPED; |
48 | return TEST_SKIPPED; |
49 | } while (c < '2' || c > '9'); |
49 | } while (c < '2' || c > '9'); |
50 | phoneid = c - '0'; |
50 | phoneid = c - '0'; |
51 | 51 | ||
52 | ipc_call_async_0(phoneid, 2000, (void *) msgid, callback, 1); |
52 | ipc_call_async_0(phoneid, 2000, (void *) msgid, callback, 1); |