Changeset 7594 for trunk/psLib/src/sys/psLogMsg.c
- Timestamp:
- Jun 16, 2006, 4:09:54 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psLogMsg.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.c
r7588 r7594 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-06-17 0 1:19:39$13 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-06-17 02:09:54 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 #include <stdio.h> 24 24 #include <string.h> 25 #include <strings.h> 25 26 #include <stdarg.h> 26 27 #include <time.h> … … 180 181 { 181 182 // No destination 182 if (dest == NULL || strc mp(dest, "none") == 0) {183 if (dest == NULL || strcasecmp(dest, "none") == 0) { 183 184 return 0; 184 185 } 185 186 186 187 // Special destinations: stdout, stderr 187 if (strc mp(dest, "stdout") == 0) {188 if (strcasecmp(dest, "stdout") == 0) { 188 189 logFD = STDOUT_FILENO; 189 190 return STDOUT_FILENO; 190 191 } 191 if (strc mp(dest, "stderr") == 0) {192 if (strcasecmp(dest, "stderr") == 0) { 192 193 logFD = STDERR_FILENO; 193 194 return STDERR_FILENO; … … 204 205 const char *location = psListGet(protocolLocation, PS_LIST_TAIL); // The location 205 206 206 if (strc mp(protocol, "file") == 0) {207 if (strcasecmp(protocol, "file") == 0) { 207 208 // FILE *file = fopen(location, "w"); 208 209 int fileD = creat(location, 0666);
Note:
See TracChangeset
for help on using the changeset viewer.
