Changeset f772bc55 in mainline for uspace/srv


Ignore:
Timestamp:
2010-11-18T22:56:01Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88a1bb9
Parents:
4e5c7ba
Message:

Remove xxx_ref typedefs (part 2).

Location:
uspace/srv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    r4e5c7ba rf772bc55  
    157157}
    158158
    159 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats){
     159int netif_get_device_stats(device_id_t device_id, device_stats_t *stats)
     160{
    160161        netif_device_t * device;
    161162        eth_stat_t * de_stat;
  • uspace/srv/net/netif/lo/lo.c

    r4e5c7ba rf772bc55  
    8181}
    8282
    83 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats)
     83int netif_get_device_stats(device_id_t device_id, device_stats_t *stats)
    8484{
    8585        netif_device_t *device;
     
    9393                return rc;
    9494
    95         memcpy(stats, (device_stats_ref) device->specific,
     95        memcpy(stats, (device_stats_t *) device->specific,
    9696            sizeof(device_stats_t));
    9797
     
    145145        }
    146146
    147         null_device_stats((device_stats_ref) (*device)->specific);
     147        null_device_stats((device_stats_t *) (*device)->specific);
    148148        (*device)->device_id = device_id;
    149149        (*device)->nil_phone = -1;
     
    204204        next = packet;
    205205        do {
    206                 ((device_stats_ref) device->specific)->send_packets++;
    207                 ((device_stats_ref) device->specific)->receive_packets++;
     206                ((device_stats_t *) device->specific)->send_packets++;
     207                ((device_stats_t *) device->specific)->receive_packets++;
    208208                length = packet_get_data_length(next);
    209                 ((device_stats_ref) device->specific)->send_bytes += length;
    210                 ((device_stats_ref) device->specific)->receive_bytes += length;
     209                ((device_stats_t *) device->specific)->send_bytes += length;
     210                ((device_stats_t *) device->specific)->receive_bytes += length;
    211211                next = pq_next(next);
    212212        } while(next);
  • uspace/srv/net/tl/tcp/tcp.c

    r4e5c7ba rf772bc55  
    126126 */
    127127typedef struct tcp_timeout tcp_timeout_t;
    128 
    129 /** Type definition of the TCP timeout pointer.
    130  *  @see tcp_timeout
    131  */
    132 typedef tcp_timeout_t *tcp_timeout_ref;
    133128
    134129/** TCP reply timeout data.
     
    809804    size_t total_length)
    810805{
    811         packet_dimension_ref packet_dimension;
     806        packet_dimension_t *packet_dimension;
    812807        int rc;
    813808
     
    13061301        tcp_socket_data_t *socket_data;
    13071302        socket_core_ref socket;
    1308         packet_dimension_ref packet_dimension;
     1303        packet_dimension_t *packet_dimension;
    13091304
    13101305        /*
     
    15401535int tcp_timeout(void *data)
    15411536{
    1542         tcp_timeout_ref timeout = data;
     1537        tcp_timeout_t *timeout = data;
    15431538        int keep_write_lock = false;
    15441539        socket_core_ref socket;
     
    16171612int tcp_release_after_timeout(void *data)
    16181613{
    1619         tcp_timeout_ref timeout = data;
     1614        tcp_timeout_t *timeout = data;
    16201615        socket_core_ref socket;
    16211616        tcp_socket_data_t *socket_data;
     
    20542049    int globals_read_only)
    20552050{
    2056         tcp_timeout_ref operation_timeout;
     2051        tcp_timeout_t *operation_timeout;
    20572052        fid_t fibril;
    20582053
     
    21592154        socket_core_ref socket;
    21602155        tcp_socket_data_t *socket_data;
    2161         packet_dimension_ref packet_dimension;
     2156        packet_dimension_t *packet_dimension;
    21622157        packet_t packet;
    21632158        size_t total_length;
     
    23012296    tcp_socket_data_t *socket_data, int synchronize, int finalize)
    23022297{
    2303         packet_dimension_ref packet_dimension;
     2298        packet_dimension_t *packet_dimension;
    23042299        tcp_header_t *header;
    23052300        int rc;
     
    23382333        socket_core_ref socket;
    23392334        tcp_socket_data_t *socket_data;
    2340         packet_dimension_ref packet_dimension;
     2335        packet_dimension_t *packet_dimension;
    23412336        int rc;
    23422337
  • uspace/srv/net/tl/udp/udp.c

    r4e5c7ba rf772bc55  
    235235        struct sockaddr *src;
    236236        struct sockaddr *dest;
    237         packet_dimension_ref packet_dimension;
     237        packet_dimension_t *packet_dimension;
    238238        int rc;
    239239
     
    469469        size_t headerlen;
    470470        device_id_t device_id;
    471         packet_dimension_ref packet_dimension;
     471        packet_dimension_t *packet_dimension;
    472472        int rc;
    473473       
     
    714714        ipc_call_t answer;
    715715        int answer_count;
    716         packet_dimension_ref packet_dimension;
     716        packet_dimension_t *packet_dimension;
    717717
    718718        /*
Note: See TracChangeset for help on using the changeset viewer.