openbsd-ports/net/dc_gui/patches/patch-src_do_connect_c
jasper 05cff3223d - update dc_gui to a gtk2 version 0.80
- fix license marker
- install .desktop file
- re-format DESCR

feedback and ok ajacoutot@
2008-08-25 15:15:53 +00:00

51 lines
2.4 KiB
Plaintext

$OpenBSD: patch-src_do_connect_c,v 1.2 2008/08/25 15:15:53 jasper Exp $
--- src/do_connect.c.orig Thu Aug 21 16:19:57 2008
+++ src/do_connect.c Thu Aug 21 16:26:32 2008
@@ -662,8 +662,10 @@ void start_a_new_dctc(const char *hub_address, int no_
/* argv[0] */
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"dctc"));
+#ifndef __OpenBSD__
/* argv[1] */
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"dctc"));
+#endif
add_prof_cmd_line_opt(profile_to_use,cmd_line,&sc,"nickname_entry_ent_cnt","-n");
add_prof_cmd_line_opt(profile_to_use,cmd_line,&sc,"user_description_entry_ent_cnt","-i");
@@ -850,8 +852,8 @@ void start_a_new_dctc(const char *hub_address, int no_
} tbl_opt_radio[]={ {"passive_mode_radio_button_toggle_val", "-f",NULL,NULL,NULL},
{"enable_upload_checkbutton_toggle_val", NULL,NULL,"-x",NULL},
{"use_done_dir_checkbutton_toggle_val", "-w",NULL,NULL,NULL},
- {"follow_forcemove_checkbutton_toggle_val", "--precmd","/FOLLOWFORCE","--precmd","/UNFOLLOWFORCE"},
- {"ddl_checkbutton_toggle_val", "--precmd","/DDL","--precmd","/NODDL"},
+ {"follow_forcemove_checkbutton_toggle_val", "-b","/FOLLOWFORCE","-b","/UNFOLLOWFORCE"},
+ {"ddl_checkbutton_toggle_val", "-b","/DDL","-b","/NODDL"},
{"away_togglebutton_toggle_val", "--precmd","/AWAY","--precmd","/HERE"},
{"grabip_checkbutton_toggle_val", "--precmd","/GBANIP","--precmd","/NOGBANIP"},
{"abort_upload_checkbutton_toggle_val", "--precmd","/ABORTLEAVED","--precmd","/NOABORTLEAVED"},
@@ -941,20 +943,20 @@ void start_a_new_dctc(const char *hub_address, int no_
g_string_free(xbl_string,TRUE);
}
- /* --precmd "/RECOND xxx" */
+ /* -b "/RECOND xxx" */
{
char bf[512];
- g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"--precmd"));
+ g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-b"));
sprintf(bf,"/RECOND %u",(unsigned int)get_profile_int_entry(profile_to_use,"reconnect_delay_scale_scale_val"));
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf));
}
- /* --precmd "/REBUILD xxx" */
+ /* -b "/REBUILD xxx" */
{
char bf[512];
- g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"--precmd"));
+ g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-b"));
sprintf(bf,"/REBUILD %u",60*(unsigned int)get_profile_int_entry(profile_to_use,"rebuild_delay_scale_scale_val"));
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf));
}