X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fgethostname.lisp;h=2f9a261e8dc2fe3bc97c772a29b9faf1d23e6e6f;hb=ac201b76eda15e3da7f31369e9eaf6d0a349163a;hp=04fa7973a89d7184f1cde852fd790625f7b6f4d3;hpb=68c9dd9a413f27118f5064200b6a85a52b865d23;p=uffi.git diff --git a/examples/gethostname.lisp b/examples/gethostname.lisp index 04fa797..2f9a261 100644 --- a/examples/gethostname.lisp +++ b/examples/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$ ;;;; ;;;; 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"