projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial support for external-formats for encoding foreign strings
[uffi.git]
/
examples
/
file-socket.lisp
diff --git
a/examples/file-socket.lisp
b/examples/file-socket.lisp
index 3ae12ccf051311d218da9d94cfc9c8c01718f3b1..cdfcb25edf333f2a23f290c13ba9a68dcf4847d9 100644
(file)
--- a/
examples/file-socket.lisp
+++ b/
examples/file-socket.lisp
@@
-7,9
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Jul 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Jul 2002
;;;;
-;;;; $Id$
-;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
;;;;
;;;; *************************************************************************
;;;;
;;;; *************************************************************************
@@
-30,10
+28,10
@@
(serv-addr :void-pointer)
(addr-len :int))
:returning :int)
(serv-addr :void-pointer)
(addr-len :int))
:returning :int)
-
+
(defun connect-to-file-socket (filename)
(let ((socket (c-socket PF_UNIX SOCK_STREAM 0)))
(if (plusp socket)
(defun connect-to-file-socket (filename)
(let ((socket (c-socket PF_UNIX SOCK_STREAM 0)))
(if (plusp socket)
- (let ((stream (c-connect socket filename (length filename))))
- stream)
+
(let ((stream (c-connect socket filename (length filename))))
+
stream)
(error "Unable to create socket"))))
(error "Unable to create socket"))))