/*
- * $Id: afp_config.c,v 1.6 2001-09-19 23:17:23 jmarcus Exp $
+ * $Id: afp_config.c,v 1.7 2001-09-23 18:47:52 jmarcus Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
#ifdef USE_SRVLOC
#include <slp.h>
static char srvloc_url[512];
-#endif
+#endif /* USE_SRVLOC */
#include "globals.h"
#include "afp_config.h"
static void SRVLOC_callback(SLPHandle hslp, SLPError errcode, void *cookie) {
*(SLPError*)cookie = errcode;
}
-#endif
+#endif /* USE_SRVLOC */
#ifdef USE_SRVLOC
static void dsi_cleanup(const AFPConfig *config)
srvloc_dereg_err:
SLPClose(hslp);
}
-#endif
+#endif /* USE_SRVLOC */
#ifndef NO_DDP
static void asp_cleanup(const AFPConfig *config)
SLPError callbackerr;
SLPHandle hslp;
struct servent *afpovertcp;
-#endif
+#endif /* USE_SRVLOC */
if ((config = (AFPConfig *) calloc(1, sizeof(AFPConfig))) == NULL) {
syslog( LOG_ERR, "DSIConfigInit: malloc(config): %m" );
srvloc_reg_err:
SLPClose(hslp);
-#endif
+#endif /* USE_SRVLOC */
config->fd = dsi->serversock;
config->server_start = dsi_start;
#ifdef USE_SRVLOC
config->server_cleanup = dsi_cleanup;
-#endif
+#endif /* USE_SRVLOC */
return config;
}