Index: uspace/lib/nic/include/nic.h
===================================================================
--- uspace/lib/nic/include/nic.h	(revision cde999aca79219e8751af76502001a86d411d176)
+++ uspace/lib/nic/include/nic.h	(revision e211ea04fccf33d4cb2092f630a29e893e096a02)
@@ -95,5 +95,5 @@
  * @return error code on error.
  */
-typedef int (*state_change_handler)(nic_t *);
+typedef errno_t (*state_change_handler)(nic_t *);
 
 /**
@@ -108,5 +108,5 @@
  * @return ENOTSUP	If this mode is not supported
  */
-typedef int (*unicast_mode_change_handler)(nic_t *,
+typedef errno_t (*unicast_mode_change_handler)(nic_t *,
     nic_unicast_mode_t, const nic_address_t *, size_t);
 
@@ -122,5 +122,5 @@
  * @return ENOTSUP	If this mode is not supported
  */
-typedef int (*multicast_mode_change_handler)(nic_t *,
+typedef errno_t (*multicast_mode_change_handler)(nic_t *,
     nic_multicast_mode_t, const nic_address_t *, size_t);
 
@@ -134,5 +134,5 @@
  * @return ENOTSUP	If this mode is not supported
  */
-typedef int (*broadcast_mode_change_handler)(nic_t *, nic_broadcast_mode_t);
+typedef errno_t (*broadcast_mode_change_handler)(nic_t *, nic_broadcast_mode_t);
 
 /**
@@ -172,5 +172,5 @@
  * 					limit of these HW filters was reached.
  */
-typedef int (*wol_virtue_add_handler)(nic_t *, const nic_wol_virtue_t *);
+typedef errno_t (*wol_virtue_add_handler)(nic_t *, const nic_wol_virtue_t *);
 
 /**
@@ -195,5 +195,5 @@
  * @return EINVAL	If this mode cannot be set up under no circumstances
  */
-typedef int (*poll_mode_change_handler)(nic_t *,
+typedef errno_t (*poll_mode_change_handler)(nic_t *,
     nic_poll_mode_t, const struct timeval *);
 
@@ -211,10 +211,10 @@
 
 /* Functions called in the main function */
-extern int nic_driver_init(const char *);
+extern errno_t nic_driver_init(const char *);
 extern void nic_driver_implement(driver_ops_t *, ddf_dev_ops_t *,
     nic_iface_t *);
 
 /* Functions called in add_device */
-extern int nic_get_resources(nic_t *, hw_res_list_parsed_t *);
+extern errno_t nic_get_resources(nic_t *, hw_res_list_parsed_t *);
 extern void nic_set_specific(nic_t *, void *);
 extern void nic_set_send_frame_handler(nic_t *, send_frame_handler);
@@ -239,6 +239,6 @@
 extern nic_device_state_t nic_query_state(nic_t *);
 extern void nic_set_tx_busy(nic_t *, int);
-extern int nic_report_address(nic_t *, const nic_address_t *);
-extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *);
+extern errno_t nic_report_address(nic_t *, const nic_address_t *);
+extern errno_t nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *);
 extern void nic_query_address(nic_t *, nic_address_t *);
 extern void nic_received_frame(nic_t *, nic_frame_t *);
@@ -268,5 +268,5 @@
 extern void nic_query_blocked_sources(const nic_t *,
     size_t, nic_address_t *, size_t *);
-extern int nic_query_vlan_mask(const nic_t *, nic_vlan_mask_t *);
+extern errno_t nic_query_vlan_mask(const nic_t *, nic_vlan_mask_t *);
 extern int nic_query_wol_max_caps(const nic_t *, nic_wv_type_t);
 extern void nic_set_wol_max_caps(nic_t *, nic_wv_type_t, int);
