tool_urlglob: constify an argument

Also: add argument names to prototypes.

Closes #20045
This commit is contained in:
Viktor Szakats 2025-12-20 04:41:02 +01:00
parent 1892286086
commit c0d8fedb49
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 6 additions and 4 deletions

View file

@ -489,7 +489,7 @@ bool glob_inuse(struct URLGlob *glob)
return glob->palloc ? TRUE : FALSE;
}
CURLcode glob_url(struct URLGlob *glob, char *url, curl_off_t *urlnum,
CURLcode glob_url(struct URLGlob *glob, const char *url, curl_off_t *urlnum,
FILE *error)
{
/*

View file

@ -71,9 +71,11 @@ struct URLGlob {
size_t pos; /* column position of error or 0 */
};
CURLcode glob_url(struct URLGlob *, char *, curl_off_t *, FILE *);
CURLcode glob_next_url(char **, struct URLGlob *);
CURLcode glob_match_url(char **, const char *, struct URLGlob *);
CURLcode glob_url(struct URLGlob *glob, const char *url, curl_off_t *urlnum,
FILE *error);
CURLcode glob_next_url(char **globbed, struct URLGlob *glob);
CURLcode glob_match_url(char **output, const char *filename,
struct URLGlob *glob);
void glob_cleanup(struct URLGlob *glob);
bool glob_inuse(struct URLGlob *glob);