Changeset bb97118 in mainline for uspace/app/trace/ipcp.c
- Timestamp:
- 2019-02-06T13:25:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb13ef8
- Parents:
- d066259
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 13:29:26)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/ipcp.c
rd066259 rbb97118 75 75 { 76 76 cap_call_handle_t *chandle = (cap_call_handle_t *) key; 77 return CAP_HANDLE_RAW(*chandle);77 return cap_handle_raw(*chandle); 78 78 } 79 79 … … 81 81 { 82 82 pending_call_t *hs = hash_table_get_inst(item, pending_call_t, link); 83 return CAP_HANDLE_RAW(hs->call_handle);83 return cap_handle_raw(hs->call_handle); 84 84 } 85 85 … … 104 104 // XXX: there is no longer a limit on the number of phones as phones are 105 105 // now handled using capabilities 106 if ( CAP_HANDLE_RAW(phone) < 0 || CAP_HANDLE_RAW(phone) >= MAX_PHONE)106 if (cap_handle_raw(phone) < 0 || cap_handle_raw(phone) >= MAX_PHONE) 107 107 return; 108 connections[ CAP_HANDLE_RAW(phone)].server = server;109 connections[ CAP_HANDLE_RAW(phone)].proto = proto;110 have_conn[ CAP_HANDLE_RAW(phone)] = 1;108 connections[cap_handle_raw(phone)].server = server; 109 connections[cap_handle_raw(phone)].proto = proto; 110 have_conn[cap_handle_raw(phone)] = 1; 111 111 } 112 112 113 113 void ipcp_connection_clear(cap_phone_handle_t phone) 114 114 { 115 have_conn[ CAP_HANDLE_RAW(phone)] = 0;116 connections[ CAP_HANDLE_RAW(phone)].server = 0;117 connections[ CAP_HANDLE_RAW(phone)].proto = NULL;115 have_conn[cap_handle_raw(phone)] = 0; 116 connections[cap_handle_raw(phone)].server = 0; 117 connections[cap_handle_raw(phone)].proto = NULL; 118 118 } 119 119 … … 184 184 int i; 185 185 186 if (have_conn[ CAP_HANDLE_RAW(phandle)])187 proto = connections[ CAP_HANDLE_RAW(phandle)].proto;186 if (have_conn[cap_handle_raw(phandle)]) 187 proto = connections[cap_handle_raw(phandle)].proto; 188 188 else 189 189 proto = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.