X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Ffile-socket.lisp;h=cdfcb25edf333f2a23f290c13ba9a68dcf4847d9;hb=HEAD;hp=58ef17c9d04acc527edf6e51bee9943b5a9b32af;hpb=ebedde4e67b858b1f65c5eb4dc7bc45978ed1e40;p=uffi.git diff --git a/examples/file-socket.lisp b/examples/file-socket.lisp index 58ef17c..cdfcb25 100644 --- a/examples/file-socket.lisp +++ b/examples/file-socket.lisp @@ -7,13 +7,8 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Jul 2002 ;;;; -;;;; $Id$ +;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg -;;;; -;;;; UFFI users are granted the rights to distribute and use this software -;;;; as governed by the terms of the Lisp Lesser GNU Public License -;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* (in-package :cl-user) @@ -33,10 +28,10 @@ (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) - (let ((stream (c-connect socket filename (length filename)))) - stream) + (let ((stream (c-connect socket filename (length filename)))) + stream) (error "Unable to create socket"))))