mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[uri] Silly change to static char[] instead const char * to avoid warning
This commit is contained in:
parent
c56f0c5e98
commit
a3eb8a369d
@ -32,6 +32,7 @@ add_frameset_entry(struct frameset_desc *frameset_desc,
|
|||||||
{
|
{
|
||||||
struct frame_desc *frame_desc;
|
struct frame_desc *frame_desc;
|
||||||
int offset;
|
int offset;
|
||||||
|
static char about_blank[] = "about:blank";
|
||||||
|
|
||||||
assert(frameset_desc);
|
assert(frameset_desc);
|
||||||
if_assert_failed return;
|
if_assert_failed return;
|
||||||
@ -51,7 +52,7 @@ add_frameset_entry(struct frameset_desc *frameset_desc,
|
|||||||
frame_desc->name = null_or_stracpy(name);
|
frame_desc->name = null_or_stracpy(name);
|
||||||
frame_desc->uri = (url && *url) ? get_uri(url, URI_NONE) : NULL;
|
frame_desc->uri = (url && *url) ? get_uri(url, URI_NONE) : NULL;
|
||||||
if (!frame_desc->uri)
|
if (!frame_desc->uri)
|
||||||
frame_desc->uri = get_uri("about:blank", URI_NONE);
|
frame_desc->uri = get_uri(about_blank, URI_NONE);
|
||||||
|
|
||||||
frameset_desc->box.x++;
|
frameset_desc->box.x++;
|
||||||
if (frameset_desc->box.x >= frameset_desc->box.width) {
|
if (frameset_desc->box.x >= frameset_desc->box.width) {
|
||||||
|
@ -31,6 +31,7 @@ void add_iframeset_entry(struct iframeset_desc **parent,
|
|||||||
struct iframeset_desc *iframeset_desc;
|
struct iframeset_desc *iframeset_desc;
|
||||||
struct iframe_desc *iframe_desc;
|
struct iframe_desc *iframe_desc;
|
||||||
int offset;
|
int offset;
|
||||||
|
static char about_blank[] = "about:blank";
|
||||||
|
|
||||||
assert(parent);
|
assert(parent);
|
||||||
if_assert_failed return;
|
if_assert_failed return;
|
||||||
@ -53,7 +54,7 @@ void add_iframeset_entry(struct iframeset_desc **parent,
|
|||||||
iframe_desc->width = width;
|
iframe_desc->width = width;
|
||||||
iframe_desc->height = height;
|
iframe_desc->height = height;
|
||||||
if (!iframe_desc->uri)
|
if (!iframe_desc->uri)
|
||||||
iframe_desc->uri = get_uri("about:blank", URI_NONE);
|
iframe_desc->uri = get_uri(about_blank, URI_NONE);
|
||||||
|
|
||||||
iframeset_desc->n++;
|
iframeset_desc->n++;
|
||||||
}
|
}
|
||||||
|
@ -366,7 +366,8 @@ exec_mailcap_command(void *data)
|
|||||||
struct string string;
|
struct string string;
|
||||||
|
|
||||||
if (init_string(&string)) {
|
if (init_string(&string)) {
|
||||||
struct uri *ref = get_uri("mailcap:elmailcap", URI_NONE);
|
static char mailcap_elmailcap[] = "mailcap:elmailcap";
|
||||||
|
struct uri *ref = get_uri(mailcap_elmailcap, URI_NONE);
|
||||||
struct uri *uri;
|
struct uri *uri;
|
||||||
struct session *ses = exec_mailcap->ses;
|
struct session *ses = exec_mailcap->ses;
|
||||||
|
|
||||||
|
@ -1308,9 +1308,10 @@ decode_session_info(struct terminal *term, struct terminal_info *info)
|
|||||||
int backgrounded = !list_empty(term->windows);
|
int backgrounded = !list_empty(term->windows);
|
||||||
int bad_url = !uri;
|
int bad_url = !uri;
|
||||||
struct session *ses;
|
struct session *ses;
|
||||||
|
static char about_blank[] = "about:blank";
|
||||||
|
|
||||||
if (!uri)
|
if (!uri)
|
||||||
uri = get_uri("about:blank", URI_NONE);
|
uri = get_uri(about_blank, URI_NONE);
|
||||||
|
|
||||||
ses = init_session(base_session, term, uri, backgrounded);
|
ses = init_session(base_session, term, uri, backgrounded);
|
||||||
if (!ses) {
|
if (!ses) {
|
||||||
|
Loading…
Reference in New Issue
Block a user