Changeset 46577995 in mainline for uspace/drv/nic/ar9271/htc.h


Ignore:
Timestamp:
2018-01-04T20:50:52Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
e211ea04
Parents:
facacc71
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
Message:

Use errno_t in all uspace and kernel code.

Change type of every variable, parameter and return value that holds an
<errno.h> constant to either errno_t (the usual case), or sys_errno_t
(some places in kernel). This is for the purpose of self-documentation,
as well as for type-checking with a bit of type definition hackery.

After this commit, HelenOS is free of code that mixes error codes with non-error
values on the assumption that error codes are negative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/htc.h

    rfacacc71 r46577995  
    297297} __attribute__((packed)) htc_setup_complete_msg_t;
    298298
    299 extern int htc_device_init(ath_t *, ieee80211_dev_t *, htc_device_t *);
    300 extern int htc_init(htc_device_t *);
    301 extern int htc_init_new_vif(htc_device_t *);
    302 extern int htc_read_control_message(htc_device_t *, void *, size_t, size_t *);
    303 extern int htc_read_data_message(htc_device_t *, void *, size_t, size_t *);
    304 extern int htc_send_control_message(htc_device_t *, void *, size_t, uint8_t);
    305 extern int htc_send_data_message(htc_device_t *, void *, size_t, uint8_t);
     299extern errno_t htc_device_init(ath_t *, ieee80211_dev_t *, htc_device_t *);
     300extern errno_t htc_init(htc_device_t *);
     301extern errno_t htc_init_new_vif(htc_device_t *);
     302extern errno_t htc_read_control_message(htc_device_t *, void *, size_t, size_t *);
     303extern errno_t htc_read_data_message(htc_device_t *, void *, size_t, size_t *);
     304extern errno_t htc_send_control_message(htc_device_t *, void *, size_t, uint8_t);
     305extern errno_t htc_send_data_message(htc_device_t *, void *, size_t, uint8_t);
    306306
    307307#endif  /* ATHEROS_HTC_H */
Note: See TracChangeset for help on using the changeset viewer.