s4:kdc: the ->process function returns "bool"
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jan 2010 10:45:59 +0000 (11:45 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 8 Jan 2010 13:36:49 +0000 (14:36 +0100)
metze

source4/kdc/kdc.c

index 93f1c7d6ecea4e61d9fcbbf16e1fda5f647fbb30..eb4144eca4cdc784e24183a32fbf760de8ecb72e 100644 (file)
@@ -276,7 +276,7 @@ static void kdc_udp_call_loop(struct tevent_req *subreq)
        uint8_t *buf;
        ssize_t len;
        int sys_errno;
-       int ret;
+       bool ok;
 
        call = talloc(sock, struct kdc_udp_call);
        if (call == NULL) {
@@ -300,14 +300,14 @@ static void kdc_udp_call_loop(struct tevent_req *subreq)
                 tsocket_address_string(call->src, call)));
 
        /* Call krb5 */
-       ret = sock->kdc_socket->process(sock->kdc_socket->kdc,
-                                       call,
-                                       &call->in,
-                                       &call->out,
-                                       call->src,
-                                       sock->kdc_socket->local_address,
-                                       1 /* Datagram */);
-       if (!ret) {
+       ok = sock->kdc_socket->process(sock->kdc_socket->kdc,
+                                      call,
+                                      &call->in,
+                                      &call->out,
+                                      call->src,
+                                      sock->kdc_socket->local_address,
+                                      1 /* Datagram */);
+       if (!ok) {
                talloc_free(call);
                goto done;
        }