summaryrefslogtreecommitdiff
path: root/sftp-int.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-int.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-int.c')
-rw-r--r--sftp-int.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sftp-int.c b/sftp-int.c
index 03b22999..aa3a8a02 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -26,7 +26,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.36 2001/04/15 08:43:46 markus Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.37 2001/06/23 15:12:20 itojun Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -111,7 +111,7 @@ const struct CMD cmds[] = {
{ NULL, -1}
};
-void
+static void
help(void)
{
printf("Available commands:\n");
@@ -143,7 +143,7 @@ help(void)
printf("? Synonym for help\n");
}
-void
+static void
local_do_shell(const char *args)
{
int status;
@@ -180,7 +180,7 @@ local_do_shell(const char *args)
error("Shell exited with status %d", WEXITSTATUS(status));
}
-void
+static void
local_do_ls(const char *args)
{
if (!args || !*args)
@@ -196,7 +196,7 @@ local_do_ls(const char *args)
}
}
-char *
+static char *
path_append(char *p1, char *p2)
{
char *ret;
@@ -210,7 +210,7 @@ path_append(char *p1, char *p2)
return(ret);
}
-char *
+static char *
make_absolute(char *p, char *pwd)
{
char *abs;
@@ -224,7 +224,7 @@ make_absolute(char *p, char *pwd)
return(p);
}
-int
+static int
infer_path(const char *p, char **ifp)
{
char *cp;
@@ -244,7 +244,7 @@ infer_path(const char *p, char **ifp)
return(0);
}
-int
+static int
parse_getput_flags(const char **cpp, int *pflag)
{
const char *cp = *cpp;
@@ -267,7 +267,7 @@ parse_getput_flags(const char **cpp, int *pflag)
return(0);
}
-int
+static int
get_pathname(const char **cpp, char **path)
{
const char *cp = *cpp, *end;
@@ -315,7 +315,7 @@ get_pathname(const char **cpp, char **path)
return (-1);
}
-int
+static int
is_dir(char *path)
{
struct stat sb;
@@ -327,7 +327,7 @@ is_dir(char *path)
return(sb.st_mode & S_IFDIR);
}
-int
+static int
remote_is_dir(int in, int out, char *path)
{
Attrib *a;
@@ -340,7 +340,7 @@ remote_is_dir(int in, int out, char *path)
return(a->perm & S_IFDIR);
}
-int
+static int
process_get(int in, int out, char *src, char *dst, char *pwd, int pflag)
{
char *abs_src = NULL;
@@ -417,7 +417,7 @@ out:
return(err);
}
-int
+static int
process_put(int in, int out, char *src, char *dst, char *pwd, int pflag)
{
char *tmp_dst = NULL;
@@ -497,7 +497,7 @@ out:
return(err);
}
-int
+static int
parse_args(const char **cpp, int *pflag, unsigned long *n_arg,
char **path1, char **path2)
{
@@ -642,7 +642,7 @@ parse_args(const char **cpp, int *pflag, unsigned long *n_arg,
return(cmdnum);
}
-int
+static int
parse_dispatch_command(int in, int out, const char *cmd, char **pwd)
{
char *path1, *path2, *tmp;