Map error codes.
authorwtc%netscape.com
Sat, 15 Jul 2000 17:32:33 +0000
changeset 1482 5242eb8308847e1498a20abfc6b689acf8755d5e
parent 1481 f72bacd684d65f7c564849b2b9b0399ef6eef004
child 1486 47077c3cee3b47ed6d1f68540d45d45750943a51
push idunknown
push userunknown
push dateunknown
Map error codes.
pr/src/misc/prsystem.c
--- a/pr/src/misc/prsystem.c
+++ b/pr/src/misc/prsystem.c
@@ -191,23 +191,23 @@ PR_IMPLEMENT(PRInt32) PR_GetNumberOfProc
     int rc;
     size_t len = sizeof(numCpus);
 
     mib[0] = CTL_HW;
     mib[1] = HW_NCPU;
     rc = sysctl( mib, 2, &numCpus, &len, NULL, 0 );
     if ( -1 == rc )  {
         numCpus = -1; /* set to -1 for return value on error */
-        PR_SetError( PR_UNKNOWN_ERROR, _MD_ERRNO());
+        _PR_MD_MAP_DEFAULT_ERROR( _MD_ERRNO() );
     }
 #elif defined(HPUX)
     numCpus = mpctl( MPC_GETNUMSPUS, 0, 0 );
     if ( numCpus < 1 )  {
         numCpus = -1; /* set to -1 for return value on error */
-        PR_SetError( PR_UNKNOWN_ERROR, _MD_ERRNO());
+        _PR_MD_MAP_DEFAULT_ERROR( _MD_ERRNO() );
     }
 #elif defined(IRIX)
     numCpus = sysconf( _SC_NPROC_ONLN );
 #elif defined(XP_UNIX)
     numCpus = sysconf( _SC_NPROCESSORS_ONLN );
 #else
 #error "An implementation is required"
 #endif