Rev 2479 | Rev 2786 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2479 | Rev 2785 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | { |
35 | { |
36 | char c; |
36 | char c; |
37 | int res; |
37 | int res; |
38 | int phoneid; |
38 | int phoneid; |
39 | 39 | ||
40 | printf("Select phoneid to hangup: 2-9\n"); |
40 | printf("Select phoneid to hangup: 2-9 (Q to skip)\n"); |
41 | do { |
41 | do { |
42 | c = getchar(); |
42 | c = getchar(); |
- | 43 | if (c == 'Q' || c == 'q') |
|
- | 44 | return TEST_SKIPPED; |
|
43 | } while (c < '2' || c > '9'); |
45 | } while (c < '2' || c > '9'); |
44 | phoneid = c - '0'; |
46 | phoneid = c - '0'; |
45 | 47 | ||
46 | printf("Hanging up..."); |
48 | printf("Hanging up..."); |
47 | res = ipc_hangup(phoneid); |
49 | res = ipc_hangup(phoneid); |