summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-25 05:01:22 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-25 05:01:22 +0000
commitbba81213b972ce15fbbaca60b9ffabb42371ce8f (patch)
treee6bd40752969f2b93d179cfb9aaae9074ca45956 /sftp-glob.c
parent34f91883a6f3123656b0a8017d68b658f7cf2403 (diff)
- itojun@cvs.openbsd.org 2001/06/23 15:12:20
[auth1.c auth2.c auth2-chall.c authfd.c authfile.c auth-rhosts.c canohost.c channels.c cipher.c clientloop.c deattack.c dh.c hostfile.c kex.c kexdh.c kexgex.c key.c nchan.c packet.c radix.c readpass.c scp.c servconf.c serverloop.c session.c sftp.c sftp-client.c sftp-glob.c sftp-int.c sftp-server.c ssh-add.c ssh-agent.c ssh.c sshconnect1.c sshconnect2.c sshconnect.c sshd.c ssh-keygen.c ssh-keyscan.c] more strict prototypes. raise warning level in Makefile.inc. markus ok'ed TODO; cleanup headers
Diffstat (limited to 'sftp-glob.c')
-rw-r--r--sftp-glob.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/sftp-glob.c b/sftp-glob.c
index aee5e91ac..18b44f82e 100644
--- a/sftp-glob.c
+++ b/sftp-glob.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sftp-glob.c,v 1.5 2001/04/15 08:43:46 markus Exp $"); 26RCSID("$OpenBSD: sftp-glob.c,v 1.6 2001/06/23 15:12:20 itojun Exp $");
27 27
28#include "ssh.h" 28#include "ssh.h"
29#include "buffer.h" 29#include "buffer.h"
@@ -49,7 +49,8 @@ static struct {
49 int fd_out; 49 int fd_out;
50} cur; 50} cur;
51 51
52void *fudge_opendir(const char *path) 52static void *
53fudge_opendir(const char *path)
53{ 54{
54 struct SFTP_OPENDIR *r; 55 struct SFTP_OPENDIR *r;
55 56
@@ -63,7 +64,8 @@ void *fudge_opendir(const char *path)
63 return((void*)r); 64 return((void*)r);
64} 65}
65 66
66struct dirent *fudge_readdir(struct SFTP_OPENDIR *od) 67static struct dirent *
68fudge_readdir(struct SFTP_OPENDIR *od)
67{ 69{
68 /* Solaris needs sizeof(dirent) + path length (see below) */ 70 /* Solaris needs sizeof(dirent) + path length (see below) */
69 static char buf[sizeof(struct dirent) + MAXPATHLEN]; 71 static char buf[sizeof(struct dirent) + MAXPATHLEN];
@@ -101,13 +103,15 @@ struct dirent *fudge_readdir(struct SFTP_OPENDIR *od)
101 return(ret); 103 return(ret);
102} 104}
103 105
104void fudge_closedir(struct SFTP_OPENDIR *od) 106static void
107fudge_closedir(struct SFTP_OPENDIR *od)
105{ 108{
106 free_sftp_dirents(od->dir); 109 free_sftp_dirents(od->dir);
107 xfree(od); 110 xfree(od);
108} 111}
109 112
110void attrib_to_stat(Attrib *a, struct stat *st) 113static void
114attrib_to_stat(Attrib *a, struct stat *st)
111{ 115{
112 memset(st, 0, sizeof(*st)); 116 memset(st, 0, sizeof(*st));
113 117
@@ -125,7 +129,8 @@ void attrib_to_stat(Attrib *a, struct stat *st)
125 } 129 }
126} 130}
127 131
128int fudge_lstat(const char *path, struct stat *st) 132static int
133fudge_lstat(const char *path, struct stat *st)
129{ 134{
130 Attrib *a; 135 Attrib *a;
131 136
@@ -137,7 +142,8 @@ int fudge_lstat(const char *path, struct stat *st)
137 return(0); 142 return(0);
138} 143}
139 144
140int fudge_stat(const char *path, struct stat *st) 145static int
146fudge_stat(const char *path, struct stat *st)
141{ 147{
142 Attrib *a; 148 Attrib *a;
143 149