Changeset 6da3baec in mainline for uspace/srv/audio/hound/connection.h


Ignore:
Timestamp:
2013-04-03T21:25:28Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be7eccf
Parents:
8f8ec69
Message:

hound: fix ctx removal.

warn if still connected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/connection.h

    r8f8ec69 r6da3baec  
    5454static inline connection_t * connection_from_source_list(link_t *l)
    5555{
    56         return list_get_instance(l, connection_t, source_link);
     56        return l ? list_get_instance(l, connection_t, source_link) : NULL;
    5757}
    5858
    5959static inline connection_t * connection_from_sink_list(link_t *l)
    6060{
    61         return list_get_instance(l, connection_t, sink_link);
     61        return l ? list_get_instance(l, connection_t, sink_link) : NULL;
    6262}
    6363
    6464static inline connection_t * connection_from_hound_list(link_t *l)
    6565{
    66         return list_get_instance(l, connection_t, hound_link);
     66        return l ? list_get_instance(l, connection_t, hound_link) : NULL;
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.