hurdextras-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

smbfs smbnetfs.c


From: Ludovic Courtès
Subject: smbfs smbnetfs.c
Date: Sun, 04 Mar 2012 15:13:08 +0000

CVSROOT:        /sources/hurdextras
Module name:    smbfs
Changes by:     Ludovic Courtès <civodul>       12/03/04 15:13:08

Modified files:
        .              : smbnetfs.c 

Log message:
        Make local functions `static'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/smbfs/smbnetfs.c?cvsroot=hurdextras&r1=1.7&r2=1.8

Patches:
Index: smbnetfs.c
===================================================================
RCS file: /sources/hurdextras/smbfs/smbnetfs.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- smbnetfs.c  4 Mar 2012 14:39:51 -0000       1.7
+++ smbnetfs.c  4 Mar 2012 15:13:08 -0000       1.8
@@ -59,7 +59,7 @@
 static struct netnode  *nodes;
 
 /* Free the memory used by the nodes.  */
-void
+static void
 clear_nodes ()
 {
   if (!nodes)
@@ -83,7 +83,7 @@
   nodes = 0;
 }
 
-void
+static void
 append_node_to_list (struct netnode *n)
 {
   n->next = nodes;
@@ -91,7 +91,7 @@
 }
 
 /* Create a new node and initialize it with default values.  */
-int
+static int
 create_node (struct node **node)
 {
   struct netnode *n = malloc (sizeof (struct netnode));
@@ -109,7 +109,7 @@
   return 0;
 }
 
-struct netnode *
+static struct netnode *
 search_node (char *filename, struct node *dir)
 {
   struct netnode *pt = nodes;
@@ -126,7 +126,7 @@
   return 0;
 }
 
-void
+static void
 remove_node (struct node *np)
 {
   struct netnode *pt;
@@ -152,7 +152,7 @@
     }
 }
 
-void
+static void
 create_root_node ()
 {
   struct node *node;
@@ -170,7 +170,7 @@
   }
 
 
-int
+static int
 add_node (char *filename, struct node *top ,struct netnode** nn)
 {
   int err;
@@ -228,6 +228,8 @@
 {
   struct stat st;
 
+  st.st_fstype = FSTYPE_MISC;
+  st.st_fsid = getpid ();
   st.st_ino = 0;
   st.st_dev = st.st_rdev = 0;
   st.st_size = 0;
@@ -242,6 +244,7 @@
   return st;
 }
 
+
 error_t
 netfs_validate_stat (struct node * np, struct iouser *cred)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]