Changes in uspace/srv/clip/clip.c [79ae36dd:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/clip/clip.c
r79ae36dd rffa2c8ef 30 30 #include <bool.h> 31 31 #include <async.h> 32 #include < ns.h>32 #include <ipc/ns.h> 33 33 #include <ipc/services.h> 34 34 #include <ipc/clipboard.h> … … 153 153 async_answer_0(iid, EOK); 154 154 155 while (true) { 155 bool cont = true; 156 while (cont) { 156 157 ipc_call_t call; 157 158 ipc_callid_t callid = async_get_call(&call); 158 159 159 if (!IPC_GET_IMETHOD(call))160 break;161 162 160 switch (IPC_GET_IMETHOD(call)) { 161 case IPC_M_PHONE_HUNGUP: 162 cont = false; 163 continue; 163 164 case CLIPBOARD_PUT_DATA: 164 165 clip_put_data(callid, &call); … … 178 179 int main(int argc, char *argv[]) 179 180 { 180 printf( "%s: HelenOS clipboard service\n", NAME);181 printf(NAME ": HelenOS clipboard service\n"); 181 182 182 183 async_set_client_connection(clip_connection); … … 185 186 return -1; 186 187 187 printf("%s: Accepting connections\n", NAME); 188 task_retval(0); 188 printf(NAME ": Accepting connections\n"); 189 189 async_manager(); 190 190
Note:
See TracChangeset
for help on using the changeset viewer.