]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/quotas.c
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / scheduler / quotas.c
index 3288c4d112f18f651fa2e9e163f09a440bb76cc5..21c41f6df7431b1bba300b4560c91d104ad2649c 100644 (file)
@@ -1,24 +1,14 @@
 /*
- * "$Id: quotas.c 6947 2007-09-12 21:09:49Z mike $"
+ * Quota routines for the CUPS scheduler.
  *
- *   Quota routines for the Common UNIX Printing System (CUPS).
+ * Copyright 2007-2011 by Apple Inc.
+ * Copyright 1997-2007 by Easy Software Products.
  *
- *   Copyright 2007-2009 by Apple Inc.
- *   Copyright 1997-2007 by Easy Software Products.
- *
- *   These coded instructions, statements, and computer programs are the
- *   property of Apple Inc. and are protected by Federal copyright
- *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
- *   which should have been included with this file.  If this file is
- *   file is missing or damaged, see the license at "http://www.cups.org/".
- *
- * Contents:
- *
- *   cupsdFindQuota()   - Find a quota record.
- *   cupsdFreeQuotas()  - Free quotas for a printer.
- *   cupsdUpdateQuota() - Update quota data for the specified printer and user.
- *   add_quota()        - Add a quota record for this printer and user.
- *   compare_quotas()   - Compare two quota records...
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file.  If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
  */
 
 /*
@@ -119,19 +109,6 @@ cupsdUpdateQuota(
                   "cupsdUpdateQuota: p=%s username=%s pages=%d k=%d",
                   p->name, username, pages, k);
 
-#if defined(__APPLE__) && defined(HAVE_DLFCN_H)
- /*
-  * Use Apple PrintService quota enforcement if installed (X Server only)
-  */
-
-  if (AppleQuotas && PSQUpdateQuotaProc)
-  { 
-    q->page_count = (*PSQUpdateQuotaProc)(p->name, p->info, username, pages, 0);
-
-    return (q);
-  }
-#endif /* __APPLE__ && HAVE_DLFCN_H */
-
   curtime = time(NULL);
 
   if (curtime < q->next_update)
@@ -159,8 +136,8 @@ cupsdUpdateQuota(
     * We only care about the current printer/class and user...
     */
 
-    if (strcasecmp(job->dest, p->name) != 0 ||
-        strcasecmp(job->username, q->username) != 0)
+    if (_cups_strcasecmp(job->dest, p->name) != 0 ||
+        _cups_strcasecmp(job->username, q->username) != 0)
       continue;
 
    /*
@@ -248,10 +225,5 @@ static int                         /* O - Result of comparison */
 compare_quotas(const cupsd_quota_t *q1,        /* I - First quota record */
                const cupsd_quota_t *q2)        /* I - Second quota record */
 {
-  return (strcasecmp(q1->username, q2->username));
+  return (_cups_strcasecmp(q1->username, q2->username));
 }
-
-
-/*
- * End of "$Id: quotas.c 6947 2007-09-12 21:09:49Z mike $".
- */