+2002-06-19 Ezra Peisach <epeisach@bu.edu>
+
+ * srv_net.c: Conditionalize debugging variables inside DEBUG
+ conditional.
+
+ * kpasswd.c (main): Conditionalize local variables inside
+ definition of LANGUAGES_SUPPORTED to avoid a variable being set
+ with out use warning.
+
2001-10-09 Ken Raeburn <raeburn@mit.edu>
* adm_conn.c, adm_rw.c, kadm5_defs.h: Make prototypes
int error;
char *name;
+#ifdef LANGUAGES_SUPPORTED
int mflag;
int lflag;
+#endif
char *language;
krb5_error_code kret;
* Initialize.
*/
language = name = opwd_prompt = (char *) NULL;
- mflag = lflag = error = 0;
+ error = 0;
+#ifdef LANGUAGES_SUPPORTED
+ mflag = lflag = 0;
+#endif
send_quit = 0;
ccache = (krb5_ccache) NULL;
#define net_not_ready_fmt "\004select error - no socket to read"
#define net_dispatch_msg "network dispatch"
+#ifdef DEBUG
static int net_debug_level = 0;
+#endif
static char *net_service_name = (char *) NULL;
static int net_service_princ_init = 0;
static krb5_principal net_service_principal = (krb5_principal) NULL;
+#if 0
static int net_server_addr_init = 0;
+#endif
static struct sockaddr_in net_server_addr;
static int net_listen_socket = -1;
static int net_max_slaves = 0;
struct hostent *our_hostent;
struct servent *our_servent;
+#ifdef DEBUG
net_debug_level = debug_level;
+#endif
DPRINT(DEBUG_CALLS, net_debug_level, ("* net_init(port=%d)\n", port));
/* Allocate the slave table */
ntohs(our_servent->s_port)));
}
}
+#if 0
net_server_addr_init = 1;
+#endif
/* Now open the listen socket */
net_listen_socket = socket(AF_INET, SOCK_STREAM, 0);