mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
tool_urlglob: constify an argument
Also: add argument names to prototypes. Closes #20045
This commit is contained in:
parent
1892286086
commit
c0d8fedb49
2 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue