Index: trunk/psLib/src/sys/psLogMsg.c
===================================================================
--- trunk/psLib/src/sys/psLogMsg.c	(revision 1807)
+++ trunk/psLib/src/sys/psLogMsg.c	(revision 2204)
@@ -11,6 +11,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-14 20:01:52 $
+ *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-27 00:57:31 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -19,11 +19,11 @@
 /*****************************************************************************
 NOTES: currently, the prototype code has the following global variables:
-    static int p_psGlobalLogDest;
-    static int p_psGlobalLogLevel;
-    static int p_psLogTime;
-    static int p_psLogHost;
-    static int p_psLogLevel;
-    static int p_psLogName;
-    static int p_psLogMsg;
+    static psS32 p_psGlobalLogDest;
+    static psS32 p_psGlobalLogLevel;
+    static psS32 p_psLogTime;
+    static psS32 p_psLogHost;
+    static psS32 p_psLogLevel;
+    static psS32 p_psLogName;
+    static psS32 p_psLogMsg;
  *****************************************************************************/
 #include <limits.h>
@@ -34,5 +34,4 @@
 #include <time.h>
 #include <unistd.h>
-#include <stdbool.h>
 
 #include "psLogMsg.h"
@@ -49,15 +48,15 @@
 
 static FILE *logDest = (FILE *) 1;      // flag to initialize to stderr before using.
-static int globalLogLevel = PS_LOG_INFO;        // log all messages at this or above
-static bool logTime = true;     // Flag to include time info
-static bool logHost = true;     // Flag to include host info
-static bool logLevel = true;    // Flag to include level info
-static bool logName = true;     // Flag to include name info
-static bool logMsg = true;      // Flag to include message info
+static psS32 globalLogLevel = PS_LOG_INFO;        // log all messages at this or above
+static psBool logTime = true;     // Flag to include time info
+static psBool logHost = true;     // Flag to include host info
+static psBool logLevel = true;    // Flag to include level info
+static psBool logName = true;     // Flag to include name info
+static psBool logMsg = true;      // Flag to include message info
 
 /*****************************************************************************
 psLogSetLevel(): Set the current log level and return old level.
 Input:
- level (int): the new log level.
+ level (psS32): the new log level.
 Output:
  none
@@ -65,8 +64,8 @@
  The old log level.
  *****************************************************************************/
-int psLogSetLevel(int level)
+psS32 psLogSetLevel(psS32 level)
 {
     // Save old global log level for changing it.
-    int oldLevel = globalLogLevel;
+    psS32 oldLevel = globalLogLevel;
 
     if ((level < MIN_LOG_LEVEL) || (level > MAX_LOG_LEVEL)) {
@@ -86,5 +85,5 @@
  
 Input:
- dest (int): the new log destination
+ dest (psS32): the new log destination
 Output:
  None.
@@ -92,5 +91,5 @@
  An integer specifying the old log destination.
  *****************************************************************************/
-bool psLogSetDestination(const char *dest)
+psBool psLogSetDestination(const char *dest)
 {
     char protocol[5];
@@ -245,7 +244,7 @@
  NULL.
  *****************************************************************************/
-void psLogMsgV(const char *name, int level, const char *fmt, va_list ap)
-{
-    static int first = 1;       // Flag for calling gethostname()
+void psLogMsgV(const char *name, psS32 level, const char *fmt, va_list ap)
+{
+    static psS32 first = 1;       // Flag for calling gethostname()
     static char hostname[HOST_NAME_MAX + 1];
 
@@ -254,5 +253,5 @@
     char head[MAX_LOG_LINE_LENGTH + 2]; // the added two are for the ending | and \0
     char *head_ptr = head;      // where we've got to in head
-    int maxLength = MAX_LOG_LINE_LENGTH;
+    psS32 maxLength = MAX_LOG_LINE_LENGTH;
     time_t clock = time(NULL);  // The current time.
     struct tm *utc = gmtime(&clock);    // The current gm time.
@@ -375,5 +374,5 @@
  NULL
  *****************************************************************************/
-void psLogMsg(const char *name, int level, const char *fmt, ...)
+void psLogMsg(const char *name, psS32 level, const char *fmt, ...)
 {
     va_list ap;
