瀏覽代碼

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 18 年之前
父節點
當前提交
83fa318b86
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/hci/strerror.c

+ 1
- 0
src/hci/strerror.c 查看文件

@@ -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…
取消
儲存