File kerberos_warnings.diff of Package yafc
--- lib/gssapi.c 2002-12-05 23:12:36.000000000 +0100
+++ /home/sscheler/BUILD/yafc-1.1.1/lib/gssapi.c 2005-11-08 17:05:53.000000000 +0100
@@ -72,7 +72,7 @@
static gss_OID_desc gss_c_nt_hostbased_service_oid_desc =
{10, (void *)"\x2a\x86\x48\x86\xf7\x12" "\x01\x02\x01\x04"};
-static gss_OID GSS_C_NT_HOSTBASED_SERVICE = &gss_c_nt_hostbased_service_oid_desc;
+gss_OID GSS_C_NT_HOSTBASED_SERVICE = &gss_c_nt_hostbased_service_oid_desc;
--- lib/kauth.c 2003-07-12 12:25:41.000000000 +0200
+++ /home/sscheler/BUILD/yafc-1.1.1/lib/kauth.c 2005-11-08 17:11:47.000000000 +0100
@@ -116,9 +116,9 @@
if (des_read_pw_string (passwd, sizeof(passwd)-1, pwbuf, 0))
*passwd = '\0';
free(pwbuf);
- des_string_to_key(passwd, &key);
+ des_string_to_key(passwd, key);
- des_key_sched(&key, schedule);
+ des_key_sched(key, schedule);
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
tkt.length,
@@ -128,8 +128,8 @@
KRB_TICKET_GRANTING_TICKET) != 0)
{
afs_string_to_key (passwd,
- krb_realmofhost(ftp->host->ohostname), &key);
- des_key_sched (&key, schedule);
+ krb_realmofhost(ftp->host->ohostname), key);
+ des_key_sched (key, schedule);
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
tkt.length,
schedule, &key, DES_DECRYPT);
--- lib/modechange.c 2000-09-14 16:06:25.000000000 +0200
+++ /home/sscheler/BUILD/yafc-1.1.1/lib/modechange.c 2005-11-08 16:57:33.000000000 +0100
@@ -327,7 +327,7 @@
static int
oatoi (s)
- char *s;
+ const char *s;
{
register int i;
--- src/ftp/socket.c 2005-11-09 12:25:14.000000000 +0100
+++ /home/sscheler/BUILD/yafc-1.1.1/src/ftp/socket.c 2005-11-09 12:26:22.000000000 +0100
@@ -153,7 +153,7 @@
{
int s;
struct sockaddr sa;
- int l = sizeof(sa);
+ unsigned int l = sizeof(sa);
int tfd;
if(!pasvmode) {
--- lib/krb4.c 2002-12-05 23:12:37.000000000 +0100
+++ /home/sscheler/BUILD/yafc-1.1.1/lib/krb4.c 2005-11-09 12:29:17.000000000 +0100
@@ -158,7 +158,7 @@
strlcpy(realm, krb_realmofhost(host), sizeof(realm));
ret = krb_get_cred(sname, inst, realm, &cred);
memmove(&d->key, &cred.session, sizeof(des_cblock));
- des_key_sched(&d->key, d->schedule);
+ des_key_sched(d->key, d->schedule);
memset(&cred, 0, sizeof(cred));
return ret;
}
--- src/ftp/ftpsend.c 2005-10-05 21:32:47.000000000 +0200
+++ /home/sscheler/BUILD/yafc-1.1.1/src/ftp/ftpsend.c 2005-11-09 13:06:46.000000000 +0100
@@ -971,7 +971,7 @@
}
if(rp > 0L) {
- if(fseeko(fp, rp, SEEK_SET) != 0) {
+ if(fseek(fp, rp, SEEK_SET) != 0) {
ftp_err(_("%s: %s, transfer cancelled\n"),
outfile, strerror(errno));
close_func(fp);
@@ -1044,7 +1044,7 @@
if(ftp->restart_offset > 0L) {
- if(fseeko(fp, ftp->restart_offset, SEEK_SET) != 0) {
+ if(fseek(fp, ftp->restart_offset, SEEK_SET) != 0) {
ftp_err(_("%s: %s, transfer cancelled\n"),
outfile, strerror(errno));
fclose(fp);