Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:favogt:symbolictw
cups
avoid_C99_mode_for_loop_initial_declarations.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avoid_C99_mode_for_loop_initial_declarations.patch of Package cups
--- scheduler/client.c.orig 2024-06-18 13:11:05.000000000 +0200 +++ scheduler/client.c 2024-07-02 14:51:25.359712447 +0200 @@ -566,6 +566,7 @@ cupsdReadClient(cupsd_client_t *con) /* struct stat filestats; /* File information */ mime_type_t *type; /* MIME type of file */ static unsigned request_id = 0; /* Request ID for temp files */ + char *start; /* Avoid error: 'for' loop initial declarations are only allowed in C99 mode */ status = HTTP_STATUS_CONTINUE; @@ -1145,7 +1146,7 @@ cupsdReadClient(cupsd_client_t *con) /* { unsigned int i = 0; // Array index - for (char *start = con->uri + 9; *start && *start != '?' && i < sizeof(name);) + for (*start = con->uri + 9; *start && *start != '?' && i < sizeof(name);) name[i++] = *start++; name[i] = '\0'; @@ -1185,7 +1186,7 @@ cupsdReadClient(cupsd_client_t *con) /* { unsigned int i = 0; // Array index - for (char *start = con->uri + 10; *start && *start != '?' && i < sizeof(name);) + for (*start = con->uri + 10; *start && *start != '?' && i < sizeof(name);) name[i++] = *start++; name[i] = '\0';
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor