COMP:Fixed warning with gcc 4.3.3: passing argument 1 of kwsysProcessSetVMSFeature discards qualifiers from pointer target type.

This commit is contained in:
Francois Bertel 2009-06-12 13:33:35 -04:00
parent 133a778e2d
commit 17daa9398a
1 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ static void kwsysProcessRestoreDefaultSignalHandlers(void);
static pid_t kwsysProcessFork(kwsysProcess* cp,
kwsysProcessCreateInformation* si);
static void kwsysProcessKill(pid_t process_id);
static int kwsysProcessSetVMSFeature(char* name, int value);
static int kwsysProcessSetVMSFeature(const char* name, int value);
static int kwsysProcessesAdd(kwsysProcess* cp);
static void kwsysProcessesRemove(kwsysProcess* cp);
#if KWSYSPE_USE_SIGINFO
@ -2487,7 +2487,7 @@ static void kwsysProcessKill(pid_t process_id)
#if defined(__VMS)
int decc$feature_get_index(char *name);
int decc$feature_set_value(int index, int mode, int value);
static int kwsysProcessSetVMSFeature(char* name, int value)
static int kwsysProcessSetVMSFeature(const char* name, int value)
{
int i;
errno = 0;
@ -2495,7 +2495,7 @@ static int kwsysProcessSetVMSFeature(char* name, int value)
return i >= 0 && (decc$feature_set_value(i, 1, value) >= 0 || errno == 0);
}
#else
static int kwsysProcessSetVMSFeature(char* name, int value)
static int kwsysProcessSetVMSFeature(const char* name, int value)
{
(void)name;
(void)value;