Changeset 3be62bc in mainline for uspace/srv/net/app/print_error.c
- Timestamp:
- 2010-03-09T22:23:18Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f2ea28
- Parents:
- a8a13d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/app/print_error.c
ra8a13d0 r3be62bc 41 41 42 42 #include "print_error.h" 43 44 void print_error(FILE * output, int error_code, const char * prefix, const char * suffix){45 if(IS_ICMP_ERROR(error_code)){46 icmp_print_error(output, error_code, prefix, suffix);47 }else if(IS_SOCKET_ERROR(error_code)){48 socket_print_error(output, error_code, prefix, suffix);49 }50 }51 43 52 44 void icmp_print_error(FILE * output, int error_code, const char * prefix, const char * suffix){ … … 101 93 } 102 94 95 void print_error(FILE * output, int error_code, const char * prefix, const char * suffix){ 96 if(IS_ICMP_ERROR(error_code)){ 97 icmp_print_error(output, error_code, prefix, suffix); 98 }else if(IS_SOCKET_ERROR(error_code)){ 99 socket_print_error(output, error_code, prefix, suffix); 100 } 101 } 102 103 103 void socket_print_error(FILE * output, int error_code, const char * prefix, const char * suffix){ 104 104 if(output){
Note:
See TracChangeset
for help on using the changeset viewer.