]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/cupsaccept.c
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / systemv / cupsaccept.c
index d92f184330dc6a03528fe4b415cf810f057d9fa0..38dff283d91f718b3c600190d76679c423f20f0d 100644 (file)
@@ -1,33 +1,22 @@
 /*
- * "$Id$"
+ * "cupsaccept", "cupsdisable", "cupsenable", and "cupsreject" commands for
+ * CUPS.
  *
- *   "cupsaccept", "cupsdisable", "cupsenable", and "cupsreject" commands for
- *   the Common UNIX Printing System (CUPS).
+ * Copyright 2007-2010 by Apple Inc.
+ * Copyright 1997-2006 by Easy Software Products.
  *
- *   Copyright 2007-2008 by Apple Inc.
- *   Copyright 1997-2006 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:
- *
- *   main() - Parse options and accept/reject jobs or disable/enable printers.
+ * 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/".
  */
 
 /*
  * Include necessary headers...
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <cups/string.h>
-#include <cups/cups.h>
-#include <cups/i18n.h>
+#include <cups/cups-private.h>
 
 
 /*
@@ -70,8 +59,7 @@ main(int  argc,                               /* I - Number of command-line arguments */
     op = IPP_RESUME_PRINTER;
   else
   {
-    _cupsLangPrintf(stderr, _("%s: Don't know what to do!\n"),
-                    command);
+    _cupsLangPrintf(stderr, _("%s: Don't know what to do."), command);
     return (1);
   }
 
@@ -91,8 +79,7 @@ main(int  argc,                               /* I - Number of command-line arguments */
            cupsSetEncryption(HTTP_ENCRYPT_REQUIRED);
 #else
             _cupsLangPrintf(stderr,
-                           _("%s: Sorry, no encryption support compiled in!\n"),
-                           command);
+                           _("%s: Sorry, no encryption support."), command);
 #endif /* HAVE_SSL */
            break;
 
@@ -106,8 +93,7 @@ main(int  argc,                              /* I - Number of command-line arguments */
              {
                _cupsLangPrintf(stderr,
                                _("%s: Error - expected username after "
-                                 "\'-U\' option!\n"),
-                               command);
+                                 "\"-U\" option."), command);
                return (1);
              }
 
@@ -129,8 +115,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
              {
                _cupsLangPrintf(stderr,
                                _("%s: Error - expected hostname after "
-                                 "\'-h\' option!\n"),
-                               command);
+                                 "\"-h\" option."), command);
                return (1);
              }
 
@@ -148,8 +133,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
              {
                _cupsLangPrintf(stderr,
                                _("%s: Error - expected reason text after "
-                                 "\'-r\' option!\n"),
-                               command);
+                                 "\"-r\" option."), command);
                return (1);
              }
 
@@ -164,14 +148,14 @@ main(int  argc,                           /* I - Number of command-line arguments */
              op = IPP_RELEASE_HELD_NEW_JOBS;
            else
            {
-             _cupsLangPrintf(stderr, _("%s: Error - unknown option \'%s\'!\n"),
+             _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%s\"."),
                              command, argv[i]);
              return (1);
            }
            break;
 
        default :
-           _cupsLangPrintf(stderr, _("%s: Error - unknown option \'%c\'!\n"),
+           _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."),
                            command, argv[i][1]);
            return (1);
       }
@@ -205,7 +189,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
       if (cupsLastError() > IPP_OK_CONFLICT)
       {
        _cupsLangPrintf(stderr,
-                       _("%s: Operation failed: %s\n"),
+                       _("%s: Operation failed: %s"),
                        command, ippErrorString(cupsLastError()));
        return (1);
       }
@@ -234,7 +218,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
 
         if (cupsLastError() > IPP_OK_CONFLICT)
        {
-         _cupsLangPrintf(stderr, "%s: %s\n", command, cupsLastErrorString());
+         _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString());
          return (1);
        }
       }
@@ -242,8 +226,3 @@ main(int  argc,                             /* I - Number of command-line arguments */
 
   return (0);
 }
-
-
-/*
- * End of "$Id$".
- */