]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/accept.c
Import CUPS 1.4svn-r7226.
[thirdparty/cups.git] / systemv / accept.c
index 63dec108e2c40c628ed4464280d7d36c6426ad68..e7efddad74d6b1473de4f3caed39de70d90027cd 100644 (file)
@@ -1,26 +1,17 @@
 /*
- * "$Id: accept.c 5925 2006-09-05 19:43:11Z mike $"
+ * "$Id: accept.c 6649 2007-07-11 21:46:42Z mike $"
  *
  *   "accept", "disable", "enable", and "reject" commands for the Common
  *   UNIX Printing System (CUPS).
  *
+ *   Copyright 2007-2008 by Apple Inc.
  *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products 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 missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636 USA
- *
- *       Voice: (301) 373-9600
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
+ *   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:
  *
@@ -134,8 +125,11 @@ main(int  argc,                            /* I - Number of command-line arguments */
            break;
 
         case 'h' : /* Connect to host */
-           if (http != NULL)
+           if (http)
+           {
              httpClose(http);
+             http = NULL;
+           }
 
            if (argv[i][2] != '\0')
              cupsSetServer(argv[i] + 2);
@@ -288,5 +282,5 @@ main(int  argc,                             /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: accept.c 5925 2006-09-05 19:43:11Z mike $".
+ * End of "$Id: accept.c 6649 2007-07-11 21:46:42Z mike $".
  */