X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fnfsquota.c;h=0e93e4ab243a93cd4b29c32d0e7693db9e14aa5c;hp=a035cf61d4a1c56606b74e70dda9aa6b48305d75;hb=efc466d375e2b60c34990b39b135ce56bd38a99b;hpb=860d731692831b16749021c7ccfdd5f1f5437d97 diff --git a/etc/afpd/nfsquota.c b/etc/afpd/nfsquota.c index a035cf61..0e93e4ab 100644 --- a/etc/afpd/nfsquota.c +++ b/etc/afpd/nfsquota.c @@ -1,5 +1,5 @@ /* - * $Id: nfsquota.c,v 1.5 2001-12-03 05:03:38 jmarcus Exp $ + * $Id: nfsquota.c,v 1.6 2002-01-04 04:45:47 sibaz Exp $ * * parts of this are lifted from the bsd quota program and are * therefore under the following copyright: @@ -39,7 +39,7 @@ char *strchr (), *strrchr (); #include #include /* for DEV_BSIZE */ #include /* on ultrix doesn't include this */ -#include +#include #ifdef HAVE_NETDB_H #include @@ -115,7 +115,7 @@ int getnfsquota(const struct vol *vol, const int uid, const u_int32_t bsize, /* figure out the host and path */ if ((hostpath = strchr(vol->v_gvs, ':')) == NULL) { - syslog(LOG_ERR, "can't find hostname for %s", vol->v_gvs); + LOG(log_error, logtype_default, "can't find hostname for %s", vol->v_gvs); return AFPERR_PARAM; } @@ -131,7 +131,7 @@ int getnfsquota(const struct vol *vol, const int uid, const u_int32_t bsize, if(callaurpc(vol, RQUOTAPROG, RQUOTAVERS, RQUOTAPROC_GETQUOTA, (xdrproc_t) xdr_getquota_args, (char *) &gq_args, (xdrproc_t) xdr_getquota_rslt, (char *) &gq_rslt) != 0) { - syslog(LOG_INFO, "nfsquota: can't retrieve nfs quota information. \ + LOG(log_info, logtype_default, "nfsquota: can't retrieve nfs quota information. \ make sure that rpc.rquotad is running on %s.", vol->v_gvs); *hostpath = ':'; return AFPERR_PARAM; @@ -142,7 +142,7 @@ int getnfsquota(const struct vol *vol, const int uid, const u_int32_t bsize, break; case Q_EPERM: - syslog(LOG_ERR, "nfsquota: quota permission error, host: %s\n", + LOG(log_error, logtype_default, "nfsquota: quota permission error, host: %s\n", vol->v_gvs); break; @@ -177,7 +177,7 @@ int getnfsquota(const struct vol *vol, const int uid, const u_int32_t bsize, break; default: - syslog(LOG_INFO, "bad rpc result, host: %s\n", vol->v_gvs); + LOG(log_info, logtype_default, "bad rpc result, host: %s\n", vol->v_gvs); break; }