* */
| 229 | * |
| 230 | */ |
| 231 | mq_item_t *mq_head_fetch_item(mq_head_t *mh) |
| 232 | { |
| 233 | mq_item_t *ret; |
| 234 | |
| 235 | if(mh->ifirst == NULL) |
| 236 | return NULL; |
| 237 | |
| 238 | ret = mh->ifirst; |
| 239 | mh->ifirst = mh->ifirst->next; |
| 240 | if(mh->ifirst == NULL) |
| 241 | mh->ilast = NULL; |
| 242 | mh->csize--; |
| 243 | return ret; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * |
no outgoing calls
no test coverage detected