projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r4718: *** empty log message ***
[uffi.git]
/
examples
/
gethostname.lisp
diff --git
a/examples/gethostname.lisp
b/examples/gethostname.lisp
index 04fa7973a89d7184f1cde852fd790625f7b6f4d3..a6e1b0e1afe7c33686d9de534c52f5d85fdabaa5 100644
(file)
--- a/
examples/gethostname.lisp
+++ b/
examples/gethostname.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; 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
;;;;
;;;;
;;;; 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)
(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"
(defun gethostname2 ()
"Returns the hostname"