bug-hurd
[Top][All Lists]
Advanced

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

[PATCH] tmpfs: a few small cleanups


From: Neal H Walfield
Subject: [PATCH] tmpfs: a few small cleanups
Date: Wed, 11 Apr 2001 17:37:08 +0200
User-agent: Mutt/1.3.15i

Encore:

2001-04-10  Neal H Walfield  <neal@cs.uml.edu>

        * tmpfs.c: Doc dixes.
        Rename diskfs_shortcurt_chrdev to diskfs_shortcut_chrdev.
        Rename diskfs_shortcurt_blkdev to diskfs_shortcut_blkdev.
        Rename diskfs_shortcurt_fifo to diskfs_shortcut_fifo.
        Rename diskfs_shortcurt_ifsock to diskfs_shortcut_ifsock.
        * tmpfs.h: adjust_used: Make it extern inline not static.

diff --exclude CVS -ur hurd-20010329-snapshot/tmpfs/tmpfs.c 
hurd-20010401/tmpfs/tmpfs.c
--- hurd-20010329-snapshot/tmpfs/tmpfs.c        Mon Feb 26 11:43:02 2001
+++ hurd-20010401/tmpfs/tmpfs.c Wed Apr 11 15:52:12 2001
@@ -41,10 +41,10 @@
 
 /* Yeah, baby, we do it all!  */
 int diskfs_shortcut_symlink = 1;
-int diskfs_shortcurt_chrdev = 1;
-int diskfs_shortcurt_blkdev = 1;
-int diskfs_shortcurt_fifo = 1;
-int diskfs_shortcurt_ifsock = 1;
+int diskfs_shortcut_chrdev = 1;
+int diskfs_shortcut_blkdev = 1;
+int diskfs_shortcut_fifo = 1;
+int diskfs_shortcut_ifsock = 1;
 
 struct node *diskfs_root_node;
 mach_port_t default_pager;
@@ -101,7 +101,7 @@
 parse_opt (int key, char *arg, struct argp_state *state)
 {
   /* We save our parsed values in this structure, hung off STATE->hook.
-     Only after parsing all options successfully will we use these values.  */
+     Only after parsing all options successfully will we use them.  */
   struct
   {
     off_t size;
@@ -115,7 +115,7 @@
       if (values == 0)
        return ENOMEM;
       state->hook = values;
-      bzero (values, sizeof *values);
+      memset (values, 0, sizeof *values);
       break;
 
     case ARGP_KEY_NO_ARGS:
diff --exclude CVS -ur hurd-20010329-snapshot/tmpfs/tmpfs.h 
hurd-20010401/tmpfs/tmpfs.h
--- hurd-20010329-snapshot/tmpfs/tmpfs.h        Sat Dec 30 20:11:29 2000
+++ hurd-20010401/tmpfs/tmpfs.h Fri Apr  6 20:46:18 2001
@@ -1,5 +1,5 @@
 /* Private data structures for tmpfs.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000,01 Free Software Foundation, Inc.
 
 This file is part of the GNU Hurd.
 
@@ -73,7 +73,7 @@
 
 extern mach_port_t default_pager;
 
-static inline void
+extern inline void
 adjust_used (off_t change)
 {
   spin_lock (&diskfs_node_refcnt_lock);

Attachment: pgp9ExNr25Iqc.pgp
Description: PGP signature


reply via email to

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