]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
fd: Make two functions static.
authorAndre Noll <maan@systemlinux.org>
Mon, 21 Feb 2011 08:02:19 +0000 (09:02 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 21 Feb 2011 08:02:19 +0000 (09:02 +0100)
para_opendir() and para_fchdir() are only used inside fd.c.

fd.c
fd.h

diff --git a/fd.c b/fd.c
index a0969e3e651a92983682f29f1ca375b214a6447a..6f9266f47a56cd8dee3e99b8651d12a89bb4069b 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -446,7 +446,7 @@ int para_chdir(const char *path)
  * \sa getcwd(3).
  *
  */
-int para_opendir(const char *dirname, DIR **dir, int *cwd)
+static int para_opendir(const char *dirname, DIR **dir, int *cwd)
 {
        int ret;
 
@@ -480,7 +480,7 @@ close_cwd:
  *
  * \return Standard.
  */
-int para_fchdir(int fd)
+static int para_fchdir(int fd)
 {
        if (fchdir(fd) < 0)
                return -ERRNO_TO_PARA_ERROR(errno);
diff --git a/fd.h b/fd.h
index 436622f0ef994791abe9d1e3f3cd3adacb08d92a..cc226b029d3035b30f9ae0ccb95a36ffff210ecd 100644 (file)
--- a/fd.h
+++ b/fd.h
@@ -17,9 +17,7 @@ __must_check int para_fgets(char *line, int size, FILE *f);
 int para_mmap(size_t length, int prot, int flags, int fd, off_t offset,
                void *map);
 int para_open(const char *path, int flags, mode_t mode);
-int para_opendir(const char *dirname, DIR **dir, int *cwd);
 int para_mkdir(const char *path, mode_t mode);
-int para_fchdir(int fd);
 int para_chdir(const char *path);
 int mmap_full_file(const char *filename, int open_mode, void **map,
        size_t *size, int *fd_ptr);