typing and spelling

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@709 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-09-02 22:45:35 +00:00
parent bc6f9c6313
commit 42d1b74492
2 changed files with 5 additions and 7 deletions

View File

@@ -209,7 +209,7 @@ static char *gunique (char *);
static void lostconn (int);
static int receive_data (FILE *, FILE *);
static void send_data (FILE *, FILE *, off_t);
static struct passwd * sk_getpwnam (char *);
static struct passwd * sgetpwnam (char *);
static char *
curdir(void)
@@ -264,7 +264,7 @@ main(int argc, char **argv)
/* detach from any tickets and tokens */
sprintf(tkfile, "/tmp/ftp_%d", getpid());
sprintf(tkfile, "/tmp/ftp_%u", (unsigned int)getpid());
krb_set_tkt_string(tkfile);
if(k_hasafs())
k_setpag();
@@ -373,7 +373,7 @@ main(int argc, char **argv)
debug = 0;
/* set this here so it can be put in wtmp */
sprintf(ttyline, "ftp%d", getpid());
sprintf(ttyline, "ftp%u", (unsigned)getpid());
/* (void) freopen(_PATH_DEVNULL, "w", stderr); */

View File

@@ -110,7 +110,6 @@ int krb4_mic(char *msg)
int len;
int kerror;
MSG_DAT m_data;
char *p;
char *tmp, *cmd;
cmd = strdup(msg);
@@ -131,7 +130,7 @@ int krb4_mic(char *msg)
}
tmp = strdup(msg);
sprintf(tmp, "%.*s", m_data.app_length, m_data.app_data);
sprintf(tmp, "%.*s", (int)m_data.app_length, m_data.app_data);
if(!strstr(tmp, "\r\n"))
strcat(tmp, "\r\n");
new_ftp_command(tmp);
@@ -152,7 +151,6 @@ int krb4_enc(char *msg)
int len;
int kerror;
MSG_DAT m_data;
char *p;
char *tmp, *cmd;
cmd = strdup(msg);
@@ -173,7 +171,7 @@ int krb4_enc(char *msg)
}
tmp = strdup(msg);
sprintf(tmp, "%.*s", m_data.app_length, m_data.app_data);
sprintf(tmp, "%.*s", (int)m_data.app_length, m_data.app_data);
if(!strstr(tmp, "\r\n"))
strcat(tmp, "\r\n");
new_ftp_command(tmp);