/[hurd]/hurd/ftpfs/conn.c
ViewVC logotype

Diff of /hurd/ftpfs/conn.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by miles, Wed Aug 6 22:08:24 1997 UTC revision 1.2 by roland, Wed May 8 10:05:17 2002 UTC
# Line 1  Line 1 
1  /* Ftp connection management  /* Ftp connection management
2    
3     Copyright (C) 1997 Free Software Foundation, Inc.     Copyright (C) 1997,2002 Free Software Foundation, Inc.
4     Written by Miles Bader <miles@gnu.ai.mit.edu>     Written by Miles Bader <miles@gnu.ai.mit.edu>
5     This file is part of the GNU Hurd.     This file is part of the GNU Hurd.
6    
# Line 19  Line 19 
19     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. */     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. */
20    
21  #include <assert.h>  #include <assert.h>
22    #include <stdint.h>
23    
24  #include "ftpfs.h"  #include "ftpfs.h"
25    
26  /* A particular connection.  */  /* A particular connection.  */
27  struct ftpfs_conn  struct ftpfs_conn
28  {  {
29    struct ftp_conn *conn;    struct ftp_conn *conn;
30    struct ftpfs_conn *next;    struct ftpfs_conn *next;
# Line 69  ftpfs_get_ftp_conn (struct ftpfs *fs, st Line 70  ftpfs_get_ftp_conn (struct ftpfs *fs, st
70          }          }
71    
72        /* For debugging purposes, give each connection a unique integer id.  */        /* For debugging purposes, give each connection a unique integer id.  */
73        fsc->conn->hook = (void *)conn_id++;        fsc->conn->hook = (void *)(uintptr_t)conn_id++;
74      }      }
75    
76    spin_lock (&fs->conn_lock);    spin_lock (&fs->conn_lock);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26