Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1548 - trunk: . fsvs/src

fsvs
Discussion topic

Back to topic list

svn commit: r1548 - trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2008-03-16 23:07:28 PDT
Message Author: pmarek
Date: 2008-03-16 23:07:28-0700
New Revision: 1548

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/waa.c

Log:
Small cleanups - renamed function parameters.


Modified: trunk/fsvs/src/waa.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/waa​.c?view=diff&rev​=1548&p1=trunk/f​svs/src/waa.c&p2​=trunk/fsvs/src/waa.​c&r1=1547&r2​=1548
====================​====================​====================​==================
--- trunk/fsvs/src/waa.c (original)
+++ trunk/fsvs/src/waa.c 2008-03-16 23:07:28-0700
@@ -670,27 +670,25 @@
 
 /** -.
  *
- * This function takes the parameter \a directory, and returns a
- * freshly allocated bit of memory with the given value or - if \c NULL -
+ * This function takes the parameter \a name, and returns a freshly
+ * allocated bit of memory with the given value or - if \c NULL -
  * the current working directory.
  *
  * That the string is always freshly allocated on the heap makes
  * sense in that callers can \b always just free it. */
-int waa__given_or_current_wd(char *directory, char **erg)
+int waa__given_or_current_wd(char *name, char **erg)
 {
     int status;
 
 
     status=0;
- if (directory)
+ if (name)
     {
- *erg=strdup(directory);
+ *erg=strdup(name);
         STOPIF_ENOMEM(!*erg);
     }
     else
- {
         STOPIF( waa__save_cwd( erg, NULL, 0), NULL);
- }
 
 ex:
     return status;
@@ -752,41 +750,42 @@
 
 /** -.
  *
- * The \a directory may be \c NULL; then the current working directory
+ * The \a entry_name may be \c NULL; then the current working directory
  * is taken.
  * \a write is open mode, like used for \c open(2) (<tt>O_CREAT | O_WRONLY
  * | O_TRUNC</tt>) and is given to \c waa__open().
  *
  * \c ENOENT is returned without giving an error message. */
-int waa__open_byext(char *directory,
+int waa__open_byext(char *entry_name,
         char *extension,
         int mode,
         int *fh)
 {
     int status;
- char *dir;
+ char *entry;
 
 
     status=0;
- STOPIF( waa__given_or_curren​t_wd(directory, &dir), NULL );
+ entry=NULL;
+ STOPIF( waa__given_or_curren​t_wd(entry_name, &entry), NULL );
 
- status=waa__open(dir, extension, mode, fh);
+ status=waa__open(entry, extension, mode, fh);
     if (status == ENOENT) goto ex;
     STOPIF(status, NULL);
 
 ex:
- if (dir) IF_FREE(dir);
+ IF_FREE(entry);
     return status;
 }
 
 
 /** -.
  * */
-int waa__open_dir(char *directory,
+int waa__open_dir(char *wc_base,
         int write,
         int *fh)
 {
- return waa__open_byext(directory, WAA__DIR_EXT, write, fh);
+ return waa__open_byext(wc_base, WAA__DIR_EXT, write, fh);
 }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1548 - trunk: . fsvs/src pmarek P.Marek 2008-03-16 23:07:28 PDT
Messages per page: