From: Andre Noll Date: Mon, 21 Feb 2011 08:02:19 +0000 (+0100) Subject: fd: Make two functions static. X-Git-Tag: v0.4.6~34 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=1be583ecb090f391ae3d906444f11532978fc2c9;hp=10b9efd6235b3b14214f4a84b3f4e17c1b11bd1a;ds=sidebyside fd: Make two functions static. para_opendir() and para_fchdir() are only used inside fd.c. --- diff --git a/fd.c b/fd.c index a0969e3e..6f9266f4 100644 --- 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 436622f0..cc226b02 100644 --- 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);