/*
- * "$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).
*
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));
* 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)
{
/*
- * 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 $".
*/