From 73c322f7adb846828e238903610e5dfe621d50e4 Mon Sep 17 00:00:00 2001 From: jorton Date: Thu, 13 Jan 2005 09:16:55 +0000 Subject: * ldap/apr_ldap_option.c (option_set_tls, option_set_cert): Fix gcc lack-of-prototype warnings; declare as static. (and fix code style) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@125051 13f79535-47bb-0310-9956-ffa450edef68 --- ldap/apr_ldap_option.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/ldap/apr_ldap_option.c b/ldap/apr_ldap_option.c index 789dc1c1..97e84680 100644 --- a/ldap/apr_ldap_option.c +++ b/ldap/apr_ldap_option.c @@ -1,4 +1,4 @@ -/* Copyright 2000-2004 The Apache Software Foundation +/* Copyright 2000-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,6 +29,11 @@ #if APR_HAS_LDAP +static int option_set_cert(apr_pool_t *pool, LDAP *ldap, const void *invalue, + apr_ldap_err_t *result); +static int option_set_tls(apr_pool_t *pool, LDAP *ldap, const void *invalue, + apr_ldap_err_t *result); + /** * APR LDAP get option function * @@ -129,11 +134,9 @@ APU_DECLARE(int) apr_ldap_set_option(apr_pool_t *pool, * APR_LDAP_STARTTLS: STARTTLS encryption * APR_LDAP_STOPTLS: Stop existing TLS connecttion */ -int option_set_tls(apr_pool_t *pool, - LDAP *ldap, - const void *invalue, - apr_ldap_err_t *result) { - +static int option_set_tls(apr_pool_t *pool, LDAP *ldap, const void *invalue, + apr_ldap_err_t *result) +{ int tls = * (const int *)invalue; #if APR_HAS_LDAP_SSL /* compiled with ssl support */ @@ -298,11 +301,9 @@ int option_set_tls(apr_pool_t *pool, * Microsoft: unknown * Solaris: unknown */ -int option_set_cert(apr_pool_t *pool, - LDAP *ldap, - const void *invalue, - apr_ldap_err_t *result) { - +static int option_set_cert(apr_pool_t *pool, LDAP *ldap, + const void *invalue, apr_ldap_err_t *result) +{ apr_ldap_opt_tls_cert_t *cert = (apr_ldap_opt_tls_cert_t *)invalue; #if APR_HAS_LDAP_SSL -- cgit v1.2.1