Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 18:49:56 -0800 (PST)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 23078 for review
Message-ID:  <200301030249.h032nuGm051778@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=23078

Change 23078 by des@des.at.des.thinksec.com on 2003/01/02 18:49:21

	On second thought, use RETURNS() since environment variables are
	strings.

Affected files ...

.. //depot/projects/openpam/lib/pam_getenv.c#10 edit

Differences ...

==== //depot/projects/openpam/lib/pam_getenv.c#10 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/lib/pam_getenv.c#9 $
+ * $P4: //depot/projects/openpam/lib/pam_getenv.c#10 $
  */
 
 #include <stdlib.h>
@@ -56,12 +56,12 @@
 
 	ENTER();
 	if (pamh == NULL)
-		RETURNP(NULL);
+		RETURNS(NULL);
 	if (name == NULL || strchr(name, '=') != NULL)
-		RETURNP(NULL);
+		RETURNS(NULL);
 	if ((i = openpam_findenv(pamh, name, strlen(name))) == -1)
-		RETURNP(NULL);
-	RETURNP(strdup(pamh->env[i]));
+		RETURNS(NULL);
+	RETURNS(strdup(pamh->env[i]));
 }
 
 /**

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301030249.h032nuGm051778>