]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/asp/asp_tickle.c
Remove bdb env on exit
[netatalk.git] / libatalk / asp / asp_tickle.c
index 6f3c529043a51beaefdc26da1f8a7c220731c610..c6f3752634822417bf4b8de31d1b4a8fc6731f5b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: asp_tickle.c,v 1.5 2001-08-15 02:17:21 srittau Exp $
+ * $Id: asp_tickle.c,v 1.7 2002-12-04 10:59:37 didg Exp $
  */
 
 #ifdef HAVE_CONFIG_H
@@ -7,7 +7,7 @@
 #endif /* HAVE_CONFIG_H */
 
 #include <string.h>
-#include <syslog.h>
+#include <atalk/logger.h>
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif /* HAVE_SYS_TYPES_H */
@@ -18,7 +18,7 @@
 #include <atalk/asp.h>
 
 /* send off a tickle */
-void asp_tickle(ASP asp, const u_int8_t sid, struct sockaddr_at *sat)
+int asp_tickle(ASP asp, const u_int8_t sid, struct sockaddr_at *sat)
 {
   struct atp_block atpb;
   char buf[ASP_HDRSIZ];
@@ -33,6 +33,8 @@ void asp_tickle(ASP asp, const u_int8_t sid, struct sockaddr_at *sat)
   atpb.atp_sreqto = 0;
   atpb.atp_sreqtries = 1;
   if ( atp_sreq( asp->asp_atp, &atpb, 0, 0 ) < 0 ) {
-    syslog( LOG_ERR, "atp_sreq: %s", strerror(errno) );
+    LOG(log_error, logtype_default, "atp_sreq: %s", strerror(errno) );
+    return 0;
   }
+  return 1;
 }