IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2006, 4:09:54 PM (20 years ago)
Author:
Paul Price
Message:

psMessageDestination protocols should be case-insensitive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r7588 r7594  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-06-17 01:19:39 $
     13 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-06-17 02:09:54 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2323#include <stdio.h>
    2424#include <string.h>
     25#include <strings.h>
    2526#include <stdarg.h>
    2627#include <time.h>
     
    180181{
    181182    // No destination
    182     if (dest == NULL || strcmp(dest, "none") == 0) {
     183    if (dest == NULL || strcasecmp(dest, "none") == 0) {
    183184        return 0;
    184185    }
    185186
    186187    // Special destinations: stdout, stderr
    187     if (strcmp(dest, "stdout") == 0) {
     188    if (strcasecmp(dest, "stdout") == 0) {
    188189        logFD = STDOUT_FILENO;
    189190        return STDOUT_FILENO;
    190191    }
    191     if (strcmp(dest, "stderr") == 0) {
     192    if (strcasecmp(dest, "stderr") == 0) {
    192193        logFD = STDERR_FILENO;
    193194        return STDERR_FILENO;
     
    204205    const char *location = psListGet(protocolLocation, PS_LIST_TAIL); // The location
    205206
    206     if (strcmp(protocol, "file") == 0) {
     207    if (strcasecmp(protocol, "file") == 0) {
    207208        //        FILE *file = fopen(location, "w");
    208209        int fileD = creat(location, 0666);
Note: See TracChangeset for help on using the changeset viewer.