X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgethostname.lisp;h=a6e1b0e1afe7c33686d9de534c52f5d85fdabaa5;hb=24d382afbccd5c9a3676c598378c6259c97b213d;hp=04fa7973a89d7184f1cde852fd790625f7b6f4d3;hpb=68c9dd9a413f27118f5064200b6a85a52b865d23;p=uffi.git diff --git a/tests/gethostname.lisp b/tests/gethostname.lisp index 04fa797..a6e1b0e 100644 --- a/tests/gethostname.lisp +++ b/tests/gethostname.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: gethostname.lisp,v 1.2 2002/11/25 19:04:57 kevin Exp $ +;;;; $Id: gethostname.lisp,v 1.3 2002/12/02 13:21:43 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -34,7 +34,8 @@ (uffi:convert-from-foreign-string name)))) (uffi:free-foreign-object name) (unless (zerop result-code) - (error "gethostname() failed.")))) + (error "gethostname() failed.")) + hostname)) (defun gethostname2 () "Returns the hostname"