From 8b06e2290740b7c103f5d77512d91a699fcbbd13 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 12 Aug 1995 01:02:11 +0000 Subject: [PATCH] added return to print func --- src/libCom/env/envSubr.c | 12 ++++++++++-- src/libCom/envSubr.c | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/libCom/env/envSubr.c b/src/libCom/env/envSubr.c index b335432f5..728cb92f5 100644 --- a/src/libCom/env/envSubr.c +++ b/src/libCom/env/envSubr.c @@ -31,6 +31,7 @@ * .04 01-11-95 joh use getenv()/putenv() to fetch/write env * vars under vxWorks * .05 04-20-95 anj changes to use CONFIG_ENV + * .06 05-24-95 joh added return stmnt to epicsPrtEnvParams() * * make options * -DvxWorks makes a version for VxWorks @@ -67,7 +68,7 @@ #include #include -#ifdef _WINDOWS +#ifdef WIN32 # include #else # include @@ -83,6 +84,11 @@ #include #include +/* + * for VMS + */ +unsigned long inet_addr (char *); + /*+/subr********************************************************************** * NAME envGetConfigParam - get value of a configuration parameter @@ -242,7 +248,7 @@ struct in_addr *pAddr; /* O pointer to struct to receive inet addr */ ptext = envGetConfigParam(pParam, sizeof text, text); if (ptext) { - status = inet_addr(text); + status = inet_addr (text); if (status != -1) { pAddr->s_addr = status; return 0; @@ -453,5 +459,7 @@ epicsPrtEnvParams() while (*ppParam != NULL) envPrtConfigParam(*(ppParam++)); + + return 0; } diff --git a/src/libCom/envSubr.c b/src/libCom/envSubr.c index b335432f5..728cb92f5 100644 --- a/src/libCom/envSubr.c +++ b/src/libCom/envSubr.c @@ -31,6 +31,7 @@ * .04 01-11-95 joh use getenv()/putenv() to fetch/write env * vars under vxWorks * .05 04-20-95 anj changes to use CONFIG_ENV + * .06 05-24-95 joh added return stmnt to epicsPrtEnvParams() * * make options * -DvxWorks makes a version for VxWorks @@ -67,7 +68,7 @@ #include #include -#ifdef _WINDOWS +#ifdef WIN32 # include #else # include @@ -83,6 +84,11 @@ #include #include +/* + * for VMS + */ +unsigned long inet_addr (char *); + /*+/subr********************************************************************** * NAME envGetConfigParam - get value of a configuration parameter @@ -242,7 +248,7 @@ struct in_addr *pAddr; /* O pointer to struct to receive inet addr */ ptext = envGetConfigParam(pParam, sizeof text, text); if (ptext) { - status = inet_addr(text); + status = inet_addr (text); if (status != -1) { pAddr->s_addr = status; return 0; @@ -453,5 +459,7 @@ epicsPrtEnvParams() while (*ppParam != NULL) envPrtConfigParam(*(ppParam++)); + + return 0; }