[haiku-commits] haiku: hrev44663 - src/system/libroot/posix/string

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 27 Sep 2012 16:44:21 +0200 (CEST)

hrev44663 adds 1 changeset to branch 'master'
old head: 83953c9405c6143cbea19c1cd836604a123e1f8e
new head: f916b680799e1b795a068de62dced124ca282864

----------------------------------------------------------------------------

f916b68: B_POSIX_ENOMEM is obviously an error...
  
  * was wrongly reported as "No error"

                                          [ François Revol <revol@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44663
Commit:      f916b680799e1b795a068de62dced124ca282864
URL:         http://cgit.haiku-os.org/haiku/commit/?id=f916b68
Author:      François Revol <revol@xxxxxxx>
Date:        Thu Sep 27 14:42:40 2012 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/system/libroot/posix/string/strerror.c |    2 +-

----------------------------------------------------------------------------

diff --git a/src/system/libroot/posix/string/strerror.c 
b/src/system/libroot/posix/string/strerror.c
index fbb95ef..fb4fb97 100644
--- a/src/system/libroot/posix/string/strerror.c
+++ b/src/system/libroot/posix/string/strerror.c
@@ -42,12 +42,12 @@ error_description(int error)
                // General Errors
 
                case B_NO_ERROR:
-               case B_POSIX_ENOMEM:
                        return "No error";
                case B_ERROR:
                        return "General system error";
 
                case B_NO_MEMORY:
+               case B_POSIX_ENOMEM:
                        // ENOMEM
                        return "Out of memory";
                case B_IO_ERROR:


Other related posts:

  • » [haiku-commits] haiku: hrev44663 - src/system/libroot/posix/string - revol