]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/http.c
Fixed some "type-punned" warnings produced by GCC when
[thirdparty/cups.git] / cups / http.c
index fb3abfb7424c90cec2b31f2f8f324870d62eec7f..4e173c502d7f3d46ad34775ff9a4a274059305ca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: http.c,v 1.135 2004/04/20 14:13:54 mike Exp $"
+ * "$Id: http.c,v 1.136 2004/05/27 18:04:32 mike Exp $"
  *
  *   HTTP routines for the Common UNIX Printing System (CUPS).
  *
@@ -1545,8 +1545,8 @@ httpUpdate(http_t *http)          /* I - HTTP data */
   char         line[1024],             /* Line from connection... */
                *value;                 /* Pointer to value on line */
   http_field_t field;                  /* Field index */
-  int          major, minor;           /* HTTP version numbers */
-  http_status_t        status;                 /* Authorization status */
+  int          major, minor,           /* HTTP version numbers */
+               status;                 /* Request status */
 
 
   DEBUG_printf(("httpUpdate(http=%p), state=%d\n", http, http->state));
@@ -1623,11 +1623,11 @@ httpUpdate(http_t *http)                /* I - HTTP data */
       * Got the beginning of a response...
       */
 
-      if (sscanf(line, "HTTP/%d.%d%d", &major, &minor, (int *)&status) != 3)
+      if (sscanf(line, "HTTP/%d.%d%d", &major, &minor, &status) != 3)
         return (HTTP_ERROR);
 
       http->version = (http_version_t)(major * 100 + minor);
-      http->status  = status;
+      http->status  = (http_status_t)status;
     }
     else if ((value = strchr(line, ':')) != NULL)
     {
@@ -2462,5 +2462,5 @@ CDSAWriteFunc(SSLConnectionRef connection,        /* I  - SSL/TLS connection */
 
 
 /*
- * End of "$Id: http.c,v 1.135 2004/04/20 14:13:54 mike Exp $".
+ * End of "$Id: http.c,v 1.136 2004/05/27 18:04:32 mike Exp $".
  */