]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix bsd build
authorMichael Jerris <mike@jerris.com>
Mon, 28 May 2007 05:01:08 +0000 (05:01 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 28 May 2007 05:01:08 +0000 (05:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5224 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/js/nsprpub/pr/src/io/prfdcach.c
libs/js/nsprpub/pr/src/io/prlog.c
libs/js/nsprpub/pr/src/misc/prinit.c
libs/js/nsprpub/pr/src/pthreads/ptthread.c

index 285c8b852a934fee7b4c5ecf6f9733588a9f2731..fefefbace0bc4c0db5eb9783ee14afe16f8cf2d3 100644 (file)
@@ -259,8 +259,8 @@ void _PR_InitFdCache(void)
     ** be overridden at runtime using environment variables
     ** or a super-wiz-bang API.
     */
-    //const char *low = PR_GetEnv("NSPR_FD_CACHE_SIZE_LOW");
-    //const char *high = PR_GetEnv("NSPR_FD_CACHE_SIZE_HIGH");
+    /* const char *low = PR_GetEnv("NSPR_FD_CACHE_SIZE_LOW"); */
+    /* const char *high = PR_GetEnv("NSPR_FD_CACHE_SIZE_HIGH"); */
 
     /* 
     ** _low is allowed to be zero, _high is not.
@@ -274,8 +274,8 @@ void _PR_InitFdCache(void)
     _pr_fd_cache.limit_high = 0;
 #endif  /* defined(DEBUG) */
 
-    //if (NULL != low) _pr_fd_cache.limit_low = atoi(low);
-    //if (NULL != high) _pr_fd_cache.limit_high = atoi(high);
+    /*if (NULL != low) _pr_fd_cache.limit_low = atoi(low);*/
+    /*if (NULL != high) _pr_fd_cache.limit_high = atoi(high);*/
 
     if (_pr_fd_cache.limit_high < _pr_fd_cache.limit_low)
         _pr_fd_cache.limit_high = _pr_fd_cache.limit_low;
index f8178e2e63315c85e25d7b4d130b5ea1b33c598c..be98e802c64bc5273de7dc17313ad2fd826935a8 100644 (file)
@@ -208,7 +208,7 @@ void _PR_InitLog(void)
 
     _pr_logLock = PR_NewLock();
 
-//    ev = PR_GetEnv("NSPR_LOG_MODULES");
+    /*   ev = PR_GetEnv("NSPR_LOG_MODULES"); */
     if (ev && ev[0]) {
         char module[64];  /* Security-Critical: If you change this
                            * size, you must also change the sscanf
@@ -255,7 +255,7 @@ void _PR_InitLog(void)
         }
         PR_SetLogBuffering(isSync ? bufSize : 0);
 
-        //ev = PR_GetEnv("NSPR_LOG_FILE");
+        /* ev = PR_GetEnv("NSPR_LOG_FILE"); */
         if (ev && ev[0]) {
             if (!PR_SetLogFile(ev)) {
 #ifdef XP_PC
@@ -318,7 +318,7 @@ static void _PR_SetLogModuleLevel( PRLogModuleInfo *lm )
 {
     char *ev = NULL;
 
-    //ev = PR_GetEnv("NSPR_LOG_MODULES");
+    /* ev = PR_GetEnv("NSPR_LOG_MODULES"); */
     if (ev && ev[0]) {
         char module[64];  /* Security-Critical: If you change this
                            * size, you must also change the sscanf
index 05b809c9888b00ed4782fd8dbf42e6d0ff391014..bba575bfe7e57f4e2eefc8d062769f85dfe0421c 100644 (file)
@@ -202,7 +202,6 @@ static void _PR_InitStuff(void)
     _PR_InitSegs();
     _PR_InitStacks();
        _PR_InitTPD();
-    //_PR_InitEnv();
     _PR_InitLayerCache();
     _PR_InitClock();
 
@@ -234,22 +233,10 @@ static void _PR_InitStuff(void)
     _PR_InitMem();
 #endif
 
-    //_PR_InitCMon();
     _PR_InitIO();
-    //_PR_InitNet();
     _PR_InitLog();
-    //_PR_InitLinker();
     _PR_InitCallOnce();
-    //_PR_InitDtoa();
     _PR_InitMW();
-    //_PR_InitRWLocks();
-
-    //nspr_InitializePRErrorTable();
-
-#if !defined(_PR_INET6) || defined(_PR_INET6_PROBE)
-       //_pr_init_ipv6();
-#endif
-       
     _PR_MD_FINAL_INIT();
 }
 
@@ -420,9 +407,7 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup()
 #endif
 
         _PR_CleanupMW();
-        //_PR_CleanupDtoa();
         _PR_CleanupCallOnce();
-               //_PR_ShutdownLinker();
         /* Release the primordial thread's private data, etc. */
         _PR_CleanupThread(me);
 
@@ -452,7 +437,6 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup()
          * Ideally, for each _PR_InitXXX(), there should be a corresponding
          * _PR_XXXCleanup() that we can call here.
          */
-        //_PR_CleanupNet();
         _PR_CleanupIO();
 #ifdef WINNT
         _PR_CleanupCPUs();
@@ -461,7 +445,6 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup()
         PR_DestroyLock(_pr_sleeplock);
         _pr_sleeplock = NULL;
         _PR_CleanupLayerCache();
-        //_PR_CleanupEnv();
         _PR_CleanupStacks();
         _PR_CleanupBeforeExit();
         _pr_initialized = PR_FALSE;
index e5aacb932245b87753dd5ad966ed3bd51bc5e069..b44057b16a73db7d0d388a4999bed28c0a41ac34 100644 (file)
@@ -938,9 +938,7 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup(void)
         PR_Unlock(pt_book.ml);
 
         _PR_CleanupMW();
-        //_PR_CleanupDtoa();
         _PR_CleanupCallOnce();
-        //_PR_ShutdownLinker();
         _PR_LogCleanup();
         _PR_CleanupNet();
         /* Close all the fd's before calling _PR_CleanupIO */
@@ -963,7 +961,6 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup(void)
         PR_DestroyLock(_pr_sleeplock);
         _pr_sleeplock = NULL;
         _PR_CleanupLayerCache();
-        //_PR_CleanupEnv();
 #ifdef _PR_ZONE_ALLOCATOR
         _PR_DestroyZones();
 #endif