Rename sendto to krb4_sendto, to avoid conflict with libc version
authorTheodore Tso <tytso@mit.edu>
Thu, 29 Jul 1993 04:19:40 +0000 (04:19 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 29 Jul 1993 04:19:40 +0000 (04:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2624 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/kerberos_v4.c

index 928d97da1e8d51411726786b6aa67559a7ba3ac6..0028e6ca861d07dd8e16b8cb5b240d2d4be6acee 100644 (file)
@@ -501,7 +501,7 @@ char * v4_klog( type, format, va_alist)
 }
 
 static
-int sendto(s, msg, len, flags, to, to_len)
+int krb4_sendto(s, msg, len, flags, to, to_len)
 int s;
 const char *msg;
 int len, flags;
@@ -859,7 +859,7 @@ kerberos_v4(client, pkt)
            rpkt = create_auth_reply(req_name_ptr, req_inst_ptr,
                req_realm_ptr, req_time_ws, 0, a_name_data.exp_date,
                a_name_data.key_version, ciph);
-           sendto(f, (char *) rpkt->dat, rpkt->length, 0,
+           krb4_sendto(f, (char *) rpkt->dat, rpkt->length, 0,
                   (struct sockaddr *) client, S_AD_SZ);
            bzero(&a_name_data, sizeof(a_name_data));
            bzero(&s_name_data, sizeof(s_name_data));
@@ -976,7 +976,7 @@ kerberos_v4(client, pkt)
            rpkt = create_auth_reply(ad->pname, ad->pinst,
                                     ad->prealm, time_ws,
                                     0, 0, 0, ciph);
-           sendto(f, (char *) rpkt->dat, rpkt->length, 0,
+           krb4_sendto(f, (char *) rpkt->dat, rpkt->length, 0,
                   (struct sockaddr *) client, S_AD_SZ);
            bzero(&s_name_data, sizeof(s_name_data));
            break;
@@ -1059,7 +1059,7 @@ kerb_err_reply(client, pkt, err, string)
     strcat(e_msg, string);
     cr_err_reply(e_pkt, req_name_ptr, req_inst_ptr, req_realm_ptr,
                 req_time_ws, err, e_msg);
-    sendto(f, (char *) e_pkt->dat, e_pkt->length, 0,
+    krb4_sendto(f, (char *) e_pkt->dat, e_pkt->length, 0,
           (struct sockaddr *) client, S_AD_SZ);
 
 }