Explorar el Código

Added strerror(0)=="No error", so that TCP protocols can use

strerror(rc) in their closed() methods without producing "Error
0x0000" when the connection is closed normally.
tags/v0.9.3
Michael Brown hace 18 años
padre
commit
83fa318b86
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/hci/strerror.c

+ 1
- 0
src/hci/strerror.c Ver fichero

@@ -55,6 +55,7 @@ const char * strerror ( int errno ) {
55 55
 }
56 56
 
57 57
 /** The most common errors */
58
+struct errortab enoerr __errortab = { 0, "No error" };
58 59
 struct errortab enoem __errortab = { ENOMEM, "Out of memory" };
59 60
 struct errortab einval __errortab = { EINVAL, "Invalid argument" };
60 61
 struct errortab enospc __errortab = { ENOSPC, "No space left on device" };

Loading…
Cancelar
Guardar