-#ifdef notdef
-/*
- * Register a new server (one not in our list). This MUST be authenticated.
- */
-
-/*ARGSUSED*/
-static Code_t
-server_register(notice, auth, who)
- ZNotice_t *notice;
- int auth;
- struct sockaddr_in *who;
-{
- Server *temp;
- int i;
- long timerval;
-
- if (who->sin_port != srv_addr.sin_port) {
- return 1;
- }
- /* Not yet... talk to ken about authenticators */
-#ifdef notdef
- if (!auth) {
- zdbug((LOG_DEBUG, "srv_unauth"));
- return 1;
- }
-#endif /* notdef */
- /* OK, go ahead and set him up. */
- temp = (Server *) malloc((nservers + 1) * sizeof(Server));
- if (!temp) {
- syslog(LOG_CRIT, "srv_reg malloc");
- return 1;
- }
-
- memcpy(temp, otherservers, nservers * sizeof(Server));
- free(otherservers);
- otherservers = temp;
- /* don't reschedule limbo's timer, so start i=1 */
- for (i = 1; i < nservers; i++) {
- if (i == me_server_idx) /* don't reset myself */
- continue;
- /* reschedule the timers--we moved otherservers */
- timerval = timer_when(otherservers[i].timer);
- timer_reset(otherservers[i].timer);
- otherservers[i].timer = timer_set_abs(timerval, server_timo,
- &otherservers[i]);
- }
- setup_server(&otherservers[nservers], &who->sin_addr);
- otherservers[nservers].state = SERV_STARTING;
- otherservers[nservers].timeout = timo_tardy;
- otherservers[nservers].update_queue = NULL;
- otherservers[nservers].dumping = 0;
-
- nservers++;
-
- return 0;
-}
-#endif
-