Changeset 41811af in mainline for uspace/srv/clip/clip.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/clip/clip.c
r9536e6e r41811af 30 30 #include <bool.h> 31 31 #include <async.h> 32 #include < ipc/ns.h>32 #include <ns.h> 33 33 #include <ipc/services.h> 34 34 #include <ipc/clipboard.h> … … 153 153 async_answer_0(iid, EOK); 154 154 155 bool cont = true; 156 while (cont) { 155 while (true) { 157 156 ipc_call_t call; 158 157 ipc_callid_t callid = async_get_call(&call); 159 158 159 if (!IPC_GET_IMETHOD(call)) 160 break; 161 160 162 switch (IPC_GET_IMETHOD(call)) { 161 case IPC_M_PHONE_HUNGUP:162 cont = false;163 continue;164 163 case CLIPBOARD_PUT_DATA: 165 164 clip_put_data(callid, &call); … … 179 178 int main(int argc, char *argv[]) 180 179 { 181 printf( NAME ": HelenOS clipboard service\n");180 printf("%s: HelenOS clipboard service\n", NAME); 182 181 183 182 async_set_client_connection(clip_connection); … … 186 185 return -1; 187 186 188 printf(NAME ": Accepting connections\n"); 187 printf("%s: Accepting connections\n", NAME); 188 task_retval(0); 189 189 async_manager(); 190 190
Note:
See TracChangeset
for help on using the changeset viewer.