From: Zoran V. <vas...@us...> - 2005-06-27 17:49:20
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11323/nsd Modified Files: return.c Log Message: Removed unneeded Ns_ConnReturnPath() added by the latest Win changes. The Ns_ConnReturnFile() should be used instead. Index: return.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/return.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** return.c 24 Jun 2005 08:42:02 -0000 1.6 --- return.c 27 Jun 2005 17:48:57 -0000 1.7 *************** *** 1362,1397 **** return result; } - - /* - *---------------------------------------------------------------------- - * - * Ns_ConnReturnPath -- - * - * Open a path and send contents out the conn. - * - * Results: - * See ReturnOpen. - * - * Side effects: - * See ReturnOpen. - * - * Note: - * Added by Archiware - * - *---------------------------------------------------------------------- - */ - - NS_EXPORT int - Ns_ConnReturnPath(Ns_Conn *conn, int status, char *type, char *path, int len); - - int - Ns_ConnReturnPath(Ns_Conn *conn, int status, char *type, char *path, int len) - { - int fd = open(path, O_RDONLY|O_BINARY); - int rv; - - if (fd < 0) return -1; - rv = ReturnOpen(conn, status, type, NULL, NULL, fd, len); - close(fd); - return rv; - } --- 1362,1363 ---- |