X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgetenv.cl;h=c6da2a0c9bff1cefaaa8014f708f7e920feae498;hb=d088e362ddd9bdd99c2d1815ab87c5328cdc92a3;hp=2f83426f11885b49601999ad5ba3904a3d41ace9;hpb=bd00c8ed506689d49306569634294446e0a017e5;p=uffi.git diff --git a/tests/getenv.cl b/tests/getenv.cl index 2f83426..c6da2a0 100644 --- a/tests/getenv.cl +++ b/tests/getenv.cl @@ -9,7 +9,7 @@ ;;;; ;;;; Copyright (c) 2002 Kevin M. Rosenberg ;;;; -;;;; $Id: getenv.cl,v 1.4 2002/03/10 05:13:09 kevin Exp $ +;;;; $Id: getenv.cl,v 1.5 2002/03/10 11:13:07 kevin Exp $ ;;;; ;;;; This file is part of UFFI. ;;;; @@ -31,15 +31,15 @@ (uffi:def-function ("getenv" c-getenv) - ((name :c-string)) - :returning :c-string) + ((name :cstring)) + :returning :cstring) (defun my-getenv (key) "Returns an environment variable, or NIL if it does not exist" (check-type key string) - (uffi:with-c-string (key-native key) - (let ((value-c-string (c-getenv key-native))) - (uffi:convert-from-c-string value-c-string)))) + (uffi:with-cstring (key-native key) + (let ((value-cstring (c-getenv key-native))) + (uffi:convert-from-cstring value-cstring)))) #+test-uffi (progn