diff options
author | joerg <joerg@pkgsrc.org> | 2013-03-02 17:59:40 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-03-02 17:59:40 +0000 |
commit | 51e528cb147b45d806f7c321222dd950ae5aca93 (patch) | |
tree | 1a99ec4ed15934dc13c75a624834bacab968168a /net/llnlxftp | |
parent | cd9f0434e035c278a5b46907dfe65894bf24ec9e (diff) | |
download | pkgsrc-51e528cb147b45d806f7c321222dd950ae5aca93.tar.gz |
Fix return types.
Diffstat (limited to 'net/llnlxftp')
35 files changed, 868 insertions, 5 deletions
diff --git a/net/llnlxftp/distinfo b/net/llnlxftp/distinfo index 5597e4b0c2b..08ecd069a6a 100644 --- a/net/llnlxftp/distinfo +++ b/net/llnlxftp/distinfo @@ -1,8 +1,41 @@ -$NetBSD: distinfo,v 1.4 2006/03/22 23:33:47 joerg Exp $ +$NetBSD: distinfo,v 1.5 2013/03/02 17:59:40 joerg Exp $ SHA1 (llnlxftp2.1.tar.Z) = bd7a2b1e9a53ae139559f09bfa5c4b590fa0cd5e RMD160 (llnlxftp2.1.tar.Z) = 8db89d902538b8b589a50c3e24b975395e072b1b Size (llnlxftp2.1.tar.Z) = 359401 bytes -SHA1 (patch-aa) = 024290d06835ac3d2e52e89461657a5467c4eb8a +SHA1 (patch-aa) = 9bb4790727b80dd1383f14765e7a498f3200b7c6 SHA1 (patch-ab) = f43adf13f0cd6f16eb9df0756d033ff5586227f6 +SHA1 (patch-abort.c) = 1cbbe6113716d61a2945b853c7f7680bfaa738e5 SHA1 (patch-ac) = cb33729e4cdde21d8a943eedc6c694c8c857f389 +SHA1 (patch-account.c) = ea8e186871aea684e2c7fa376bb0b77aca05d959 +SHA1 (patch-aconnect.c) = 7c217015f86defb4207e685c17762f89cc4798fe +SHA1 (patch-cache.c) = 846d09f2f1f5c1b229e1e30ca7f7fba690072a19 +SHA1 (patch-changedir.c) = 4bb8f2219b354bb8b45878552f20bdf5bc06d57f +SHA1 (patch-color.c) = 3c275de98ae25810a6d4ea72609d1bb6f8f0820b +SHA1 (patch-cursor.c) = 0ac07f87bcfbdd95ddc1c363d3c818bf4455536c +SHA1 (patch-delete.c) = 505d340887c436fb10638fd1c1b854abbec60df9 +SHA1 (patch-destdir.c) = 06909659277f4300b81af3b58714adb748b84d92 +SHA1 (patch-dirlong.c) = a3f4084df83c72a7b4da9bea017e95ac0d2f4929 +SHA1 (patch-dirname.c) = 4ed67fc27da0216568ffd889cee44cfa69fe6b07 +SHA1 (patch-dirpath.c) = 2973100ce95bb0e41bbbafeb9a085c543e382007 +SHA1 (patch-dirtable.c) = 060d066b1ef0790282ac80732bbc9facf25f8aa3 +SHA1 (patch-goto.c) = 7d3a5608e05928cc5a3a944eb2cb8618e44e1713 +SHA1 (patch-host.c) = 7443e52e2a15160bfbbf58653b5a3f5fb4eaf364 +SHA1 (patch-misc.c) = add4009410f9a7f050bc8af1c72e9aea562f2597 +SHA1 (patch-mkdir.c) = 779ad3ded5478dcce4f2a8d14d88cb762f5ee48c +SHA1 (patch-mpmonitor.c) = ef913324e490160f44eb2764a29813901266f766 +SHA1 (patch-password.c) = 48fa368dd6686a5da1948478e783569c585dfa36 +SHA1 (patch-path.c) = 60753f54d158c5d89b8257a691d41a23ea820419 +SHA1 (patch-prefs.c) = 8f9a50c56409ba82c6ea1875b957bc23a23488ce +SHA1 (patch-qidialogs.c) = 660aed4f8d49ce2263d4582708a4c31c19688ec1 +SHA1 (patch-quote.c) = c05c03e7de26f5487975698a616c4e62d7e366bb +SHA1 (patch-rconnect.c) = 8a5353c9e7e196a8a0406764ddc2ab8aa767767a +SHA1 (patch-rename.c) = e4c21e271d4f0616f5dacaa6d6183c27f64f649d +SHA1 (patch-select.c) = 603bd39d5c8805b4d9541ec1dac76fd9e8ffd240 +SHA1 (patch-server.c) = c6965e626793a0691101e445c8d8614703e041d3 +SHA1 (patch-verify.c) = 6771bbf4941f8f73442fcb697a0bb3bfb8a1ad32 +SHA1 (patch-view2.c) = d69824596901d7d5354be822b3bd265dcfa1b4ea +SHA1 (patch-viewprefs.c) = d82800f41c397095571520f9419da7dc5c66c0a8 +SHA1 (patch-xfer1.c) = 0080535ae9c10ed1663d74023de33e5b79d250ea +SHA1 (patch-xfermon.c) = 0572e335875b8f795ca1041704e55852a0d2c9ae +SHA1 (patch-xftp.c) = 92ce365d69cb36299cea4417c8c25d1a3fce4518 diff --git a/net/llnlxftp/patches/patch-aa b/net/llnlxftp/patches/patch-aa index fe233c09d01..87296c8813d 100644 --- a/net/llnlxftp/patches/patch-aa +++ b/net/llnlxftp/patches/patch-aa @@ -1,8 +1,17 @@ -$NetBSD: patch-aa,v 1.2 2006/03/22 23:33:47 joerg Exp $ +$NetBSD: patch-aa,v 1.3 2013/03/02 17:59:40 joerg Exp $ ---- log.c.orig 1995-10-19 08:20:22.000000000 -0700 +--- log.c.orig 1995-10-19 15:20:22.000000000 +0000 +++ log.c -@@ -81,8 +81,10 @@ extern Widget w_toplev; +@@ -59,6 +59,8 @@ + #include "xftp.h" + #include "str.h" + ++static void create_save_log_dialog(void); ++ + static Widget w_saveLogDialog; + + static char *help_save_diagnostics_log[] = { +@@ -81,8 +83,10 @@ extern Widget w_toplev; extern char *initial_logfile_name; extern Display *display; extern int print_password_in_debug; @@ -14,3 +23,12 @@ $NetBSD: patch-aa,v 1.2 2006/03/22 23:33:47 joerg Exp $ extern char *sys_errlist[]; #endif +@@ -224,7 +228,7 @@ XtPointer call_data; + /* + * create_save_log_dialog - Create the "Save Log" dialog. + */ +-create_save_log_dialog() ++static void create_save_log_dialog(void) + { + static int initialized = False; + Widget widget; diff --git a/net/llnlxftp/patches/patch-abort.c b/net/llnlxftp/patches/patch-abort.c new file mode 100644 index 00000000000..5385ffc6cd3 --- /dev/null +++ b/net/llnlxftp/patches/patch-abort.c @@ -0,0 +1,22 @@ +$NetBSD: patch-abort.c,v 1.1 2013/03/02 17:59:40 joerg Exp $ + +--- abort.c.orig 2013-03-01 13:49:25.000000000 +0000 ++++ abort.c +@@ -56,6 +56,8 @@ + #include <Xm/Label.h> + #include <Xm/ToggleB.h> + ++static void create_abort_dialog(void); ++ + static Widget w_abortDialog; + + extern Widget w_toplev; +@@ -88,7 +90,7 @@ hide_abort_dialog() + * create_abort_dialog - Creates a dialog that displays an abort-in-progress + * message. + */ +-create_abort_dialog() ++static void create_abort_dialog(void) + { + static int initialized = False; + Arg args[1]; diff --git a/net/llnlxftp/patches/patch-account.c b/net/llnlxftp/patches/patch-account.c new file mode 100644 index 00000000000..539d06dedca --- /dev/null +++ b/net/llnlxftp/patches/patch-account.c @@ -0,0 +1,13 @@ +$NetBSD: patch-account.c,v 1.1 2013/03/02 17:59:40 joerg Exp $ + +--- account.c.orig 2013-03-01 13:50:44.000000000 +0000 ++++ account.c +@@ -74,7 +74,7 @@ void cb_map_account_dialog(); + /* + * create_account_dialog - Creates the "Get Account" dialog. + */ +-create_account_dialog() ++static void create_account_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-aconnect.c b/net/llnlxftp/patches/patch-aconnect.c new file mode 100644 index 00000000000..396f3d6a96b --- /dev/null +++ b/net/llnlxftp/patches/patch-aconnect.c @@ -0,0 +1,22 @@ +$NetBSD: patch-aconnect.c,v 1.1 2013/03/02 17:59:40 joerg Exp $ + +--- aconnect.c.orig 2013-03-01 13:50:09.000000000 +0000 ++++ aconnect.c +@@ -60,6 +60,8 @@ + #include "list.h" + #include "str.h" + ++void create_aconnect_dialog(void); ++ + static struct { + Widget w_dialog; + Widget w_form; +@@ -167,7 +169,7 @@ XtPointer call_data; + /* + * create_aconnect_dialog - Creates the Remote Connection dialog. + */ +-create_aconnect_dialog() ++void create_aconnect_dialog(void) + { + static int initialized = False; + Arg args[2]; diff --git a/net/llnlxftp/patches/patch-cache.c b/net/llnlxftp/patches/patch-cache.c new file mode 100644 index 00000000000..946f1867dc1 --- /dev/null +++ b/net/llnlxftp/patches/patch-cache.c @@ -0,0 +1,35 @@ +$NetBSD: patch-cache.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- cache.c.orig 2013-03-01 13:51:06.000000000 +0000 ++++ cache.c +@@ -122,7 +122,7 @@ construct_cache_filename() + /* + * save_cache - Write current cache entries to .xftpcache. + */ +-save_cache() ++void save_cache(void) + { + static FILE *fp; + struct host_link *hptr; +@@ -155,7 +155,7 @@ save_cache() + /* + * read_cache_from_file - Initialize cache entries with info from .xftpcache. + */ +-read_cache_from_file() ++void read_cache_from_file(void) + { + FILE *fp; + char cache_line[MAXCLINE+1]; +@@ -339,11 +339,7 @@ char *value; + * flag is set, then the list is returned sorted, + * otherwise it is returned in order of last use. + */ +-retrieve_cache(cache_id, hostname, list, sort) +-int cache_id; +-char *hostname; +-struct sl_struct **list; +-int sort; ++void retrieve_cache(int cache_id, char *hostname, struct sl_struct **list, int sort) + { + char **values; + int indx; diff --git a/net/llnlxftp/patches/patch-changedir.c b/net/llnlxftp/patches/patch-changedir.c new file mode 100644 index 00000000000..73e116b093e --- /dev/null +++ b/net/llnlxftp/patches/patch-changedir.c @@ -0,0 +1,34 @@ +$NetBSD: patch-changedir.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- changedir.c.orig 2013-03-01 13:52:15.000000000 +0000 ++++ changedir.c +@@ -57,6 +57,9 @@ + #include "xftp.h" + #include "list.h" + ++void change_directory(int host, char *new_wd); ++void create_changedir_dialog(void); ++ + static Widget w_changeDirDialog; + + static char *help_change_dir[] = { +@@ -127,7 +130,7 @@ XtPointer call_data; + /* + * create_changedir_dialog - Create "Change Directory" dialog. + */ +-create_changedir_dialog() ++void create_changedir_dialog(void) + { + static int initialized = False; + Arg args[1]; +@@ -242,9 +245,7 @@ XtPointer call_data; + * routine takes care of report errors, updating the + * display, and updating hinfo[host].wd. + */ +-change_directory(host, new_wd) +-int host; +-char *new_wd; ++void change_directory(int host, char *new_wd) + { + char *wd; + diff --git a/net/llnlxftp/patches/patch-color.c b/net/llnlxftp/patches/patch-color.c new file mode 100644 index 00000000000..a28c3871179 --- /dev/null +++ b/net/llnlxftp/patches/patch-color.c @@ -0,0 +1,25 @@ +$NetBSD: patch-color.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- color.c.orig 1995-10-19 15:20:20.000000000 +0000 ++++ color.c +@@ -78,8 +78,7 @@ color_display() + * fix_list_color - Set background of scrolled list to match its + * scrollbar's trough color. + */ +-fix_list_color(widget) +-Widget widget; ++void fix_list_color(Widget widget) + { + Pixel sb_trough_color; + Widget w_vertical_sb; +@@ -108,9 +107,7 @@ Widget widget; + * of certain types of widgets (e.g., text + * and textfield widgets). + */ +-set_bg_to_sb_trough_color(widget, w_sb) +-Widget widget; +-Widget w_sb; ++void set_bg_to_sb_trough_color(Widget widget, Widget w_sb) + { + Pixel sb_trough_color; + diff --git a/net/llnlxftp/patches/patch-cursor.c b/net/llnlxftp/patches/patch-cursor.c new file mode 100644 index 00000000000..558446ec185 --- /dev/null +++ b/net/llnlxftp/patches/patch-cursor.c @@ -0,0 +1,43 @@ +$NetBSD: patch-cursor.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- cursor.c.orig 1995-10-19 15:20:20.000000000 +0000 ++++ cursor.c +@@ -79,8 +79,7 @@ static struct dialog_list_st *dialog_lis + * used cursor. Every dialog in use has to indivually + * have its cursor changed. + */ +-change_cursor(shape) +-int shape; ++void change_cursor(int shape) + { + struct cursor_stack_st *cptr; + struct dialog_list_st *dptr; +@@ -128,7 +127,7 @@ use_normal_cursor() + /* + * restore_prev_cursor - Restore cursor to the previously used shape. + */ +-restore_prev_cursor() ++void restore_prev_cursor(void) + { + struct cursor_stack_st *current; + struct dialog_list_st *dptr; +@@ -178,8 +177,7 @@ restore_prev_cursor() + * by change_cursor() so that it can change the + * cursor for all existing dialogs. + */ +-add_dialog_to_list(w_dialog) +-Widget w_dialog; ++void add_dialog_to_list(Widget w_dialog) + { + struct dialog_list_st *dptr; + +@@ -214,8 +212,7 @@ Widget w_dialog; + * by change_cursor() so that it can change the + * cursor for all existing dialogs. + */ +-remove_dialog_from_list(w_dialog) +-Widget w_dialog; ++void remove_dialog_from_list(Widget w_dialog) + { + struct dialog_list_st *dptr; + diff --git a/net/llnlxftp/patches/patch-delete.c b/net/llnlxftp/patches/patch-delete.c new file mode 100644 index 00000000000..a361316e867 --- /dev/null +++ b/net/llnlxftp/patches/patch-delete.c @@ -0,0 +1,24 @@ +$NetBSD: patch-delete.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- delete.c.orig 1995-10-19 15:20:21.000000000 +0000 ++++ delete.c +@@ -59,6 +59,8 @@ + #include "list.h" + #include "str.h" + ++static void init_delete(int host, int recursive); ++ + struct del_ctrl_block del_ctrl; + + extern struct st_host_info hinfo[]; +@@ -108,9 +110,7 @@ XtPointer call_data; + /* + * init_delete - Initialize delection(s). + */ +-init_delete(host, recursive) +-int host; +-int recursive; ++static void init_delete(int host, int recursive) + { + XmStringTable selected_items; + int nselected_items; diff --git a/net/llnlxftp/patches/patch-destdir.c b/net/llnlxftp/patches/patch-destdir.c new file mode 100644 index 00000000000..2a6076306da --- /dev/null +++ b/net/llnlxftp/patches/patch-destdir.c @@ -0,0 +1,13 @@ +$NetBSD: patch-destdir.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- destdir.c.orig 2013-03-01 13:55:32.000000000 +0000 ++++ destdir.c +@@ -104,7 +104,7 @@ char *cstring_to_text(); + * create_destdir_dialog - Create dialog that prompts for destination + * directory. + */ +-create_destdir_dialog() ++static void create_destdir_dialog(void) + { + static int initialized = False; + XmString label; diff --git a/net/llnlxftp/patches/patch-dirlong.c b/net/llnlxftp/patches/patch-dirlong.c new file mode 100644 index 00000000000..68e20c422ed --- /dev/null +++ b/net/llnlxftp/patches/patch-dirlong.c @@ -0,0 +1,23 @@ +$NetBSD: patch-dirlong.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- dirlong.c.orig 2013-03-01 13:56:00.000000000 +0000 ++++ dirlong.c +@@ -60,6 +60,8 @@ + #include "list.h" + #include "str.h" + ++void create_dirlong_dialog(int host); ++ + static int dirlong_dialog_created[] = { False, False }; + + static struct { +@@ -137,8 +139,7 @@ XtPointer call_data; + * displays a long list of the the entries of the + * current working directory. + */ +-create_dirlong_dialog(host) +-int host; ++void create_dirlong_dialog(int host) + { + int i; + Arg args[6]; diff --git a/net/llnlxftp/patches/patch-dirname.c b/net/llnlxftp/patches/patch-dirname.c new file mode 100644 index 00000000000..11a8f936be8 --- /dev/null +++ b/net/llnlxftp/patches/patch-dirname.c @@ -0,0 +1,14 @@ +$NetBSD: patch-dirname.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- dirname.c.orig 1995-10-19 15:20:21.000000000 +0000 ++++ dirname.c +@@ -66,8 +66,7 @@ char *links_to_path(); + * update_dirname_menu - Update directory name menu for "host" in main + * window. + */ +-update_dirname_menu(host) +-int host; ++void update_dirname_menu(int host) + { + XmString label; + char **wd_links; diff --git a/net/llnlxftp/patches/patch-dirpath.c b/net/llnlxftp/patches/patch-dirpath.c new file mode 100644 index 00000000000..878919afe3f --- /dev/null +++ b/net/llnlxftp/patches/patch-dirpath.c @@ -0,0 +1,34 @@ +$NetBSD: patch-dirpath.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- dirpath.c.orig 1995-10-19 15:20:21.000000000 +0000 ++++ dirpath.c +@@ -58,6 +58,9 @@ + #include <Xm/Form.h> + #include "xftp.h" + ++static void create_dirpath_dialog(int host); ++void update_dirpath(int host); ++ + static struct { + Widget w_dialog; + Widget w_form; +@@ -108,8 +111,7 @@ XtPointer call_data; + * create_dirpath_dialog - Create dialog window that displays full + * directory path name. + */ +-create_dirpath_dialog(host) +-int host; ++static void create_dirpath_dialog(int host) + { + Arg args[1]; + XmString label; +@@ -187,8 +189,7 @@ int host; + /* + * update_dirpath - Update contents of directory path dialog. + */ +-update_dirpath(host) +-int host; ++void update_dirpath(int host) + { + XmString string; + diff --git a/net/llnlxftp/patches/patch-dirtable.c b/net/llnlxftp/patches/patch-dirtable.c new file mode 100644 index 00000000000..ae0a311c46d --- /dev/null +++ b/net/llnlxftp/patches/patch-dirtable.c @@ -0,0 +1,23 @@ +$NetBSD: patch-dirtable.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- dirtable.c.orig 1995-10-19 15:20:21.000000000 +0000 ++++ dirtable.c +@@ -71,6 +71,8 @@ + #define UNSELECTED 0 + #define SELECTED 1 + ++void create_dirtable_dialog(int host); ++ + struct table_entry { + int state; + char *name; +@@ -166,8 +168,7 @@ XtPointer call_data; + * displays the entries of the current working + * directory. + */ +-create_dirtable_dialog(host) +-int host; ++void create_dirtable_dialog(int host) + { + Arg args[1]; + int i; diff --git a/net/llnlxftp/patches/patch-goto.c b/net/llnlxftp/patches/patch-goto.c new file mode 100644 index 00000000000..e24f9e2219b --- /dev/null +++ b/net/llnlxftp/patches/patch-goto.c @@ -0,0 +1,14 @@ +$NetBSD: patch-goto.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- goto.c.orig 1995-10-19 15:20:22.000000000 +0000 ++++ goto.c +@@ -126,8 +126,7 @@ int host; + * update_goto_menu - Update the "Go to Previous Directory" menu with the + * latest values from the directory cache. + */ +-update_goto_menu(host) +-int host; ++static void update_goto_menu(int host) + { + int i; + struct sl_struct *list; diff --git a/net/llnlxftp/patches/patch-host.c b/net/llnlxftp/patches/patch-host.c new file mode 100644 index 00000000000..6b6485fe188 --- /dev/null +++ b/net/llnlxftp/patches/patch-host.c @@ -0,0 +1,14 @@ +$NetBSD: patch-host.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- host.c.orig 2013-03-01 13:59:50.000000000 +0000 ++++ host.c +@@ -96,8 +96,7 @@ int host; + * to "host" is detected. The user is informed, and a + * reconnection is attempted if he/she wishes. + */ +-lost_connection(host) +-int host; ++void lost_connection(int host) + { + char msg[250]; + static char *side[] = { "left", "right" }; diff --git a/net/llnlxftp/patches/patch-misc.c b/net/llnlxftp/patches/patch-misc.c new file mode 100644 index 00000000000..f7c4f3727f3 --- /dev/null +++ b/net/llnlxftp/patches/patch-misc.c @@ -0,0 +1,32 @@ +$NetBSD: patch-misc.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- misc.c.orig 1995-10-19 15:20:23.000000000 +0000 ++++ misc.c +@@ -67,6 +67,8 @@ + + #define MAXTRIES 10 + ++void disconnect(int host); ++ + struct { + unsigned char *data; + int width; +@@ -137,8 +139,7 @@ XtPointer call_data; + * disconnect - Disconnects "host". The indicated host can be either locally + * or remotely connected. + */ +-disconnect(host) +-int host; ++void disconnect(int host) + { + switch (hinfo[host].type) { + case NEITHER: +@@ -362,7 +363,7 @@ char *file_path; + * try to create either a 50x50 icon or a 64x64 icon, depending + * on what size the window manager prefers. + */ +-create_icon() ++void create_icon(void) + { + XIconSize *list; + int count; diff --git a/net/llnlxftp/patches/patch-mkdir.c b/net/llnlxftp/patches/patch-mkdir.c new file mode 100644 index 00000000000..066409ed3e1 --- /dev/null +++ b/net/llnlxftp/patches/patch-mkdir.c @@ -0,0 +1,22 @@ +$NetBSD: patch-mkdir.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- mkdir.c.orig 1995-10-19 15:20:23.000000000 +0000 ++++ mkdir.c +@@ -56,6 +56,8 @@ + #include "xftp.h" + #include "str.h" + ++static void create_mkdir_dialog(void); ++ + static Widget w_mkdirDialog; + + static char *help_make_dir[] = { +@@ -119,7 +121,7 @@ XtPointer call_data; + /* + * create_mkdir_dialog - Create the "Make Directory" dialog. + */ +-create_mkdir_dialog() ++static void create_mkdir_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-mpmonitor.c b/net/llnlxftp/patches/patch-mpmonitor.c new file mode 100644 index 00000000000..27b177b16fd --- /dev/null +++ b/net/llnlxftp/patches/patch-mpmonitor.c @@ -0,0 +1,22 @@ +$NetBSD: patch-mpmonitor.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- mpmonitor.c.orig 1995-10-19 15:20:23.000000000 +0000 ++++ mpmonitor.c +@@ -59,6 +59,8 @@ + #include <Xm/Form.h> + #include <Xm/TextF.h> + ++void create_mp_monitor_dialog(void); ++ + static int abort_requested; + + static struct { +@@ -104,7 +106,7 @@ char *path_label; + * create_mp_monitor_dialog - Create dialog window that displays the + * directory entry currently being operated on. + */ +-create_mp_monitor_dialog() ++void create_mp_monitor_dialog(void) + { + static int initialized = False; + Arg args[1]; diff --git a/net/llnlxftp/patches/patch-password.c b/net/llnlxftp/patches/patch-password.c new file mode 100644 index 00000000000..49e7ee9dfed --- /dev/null +++ b/net/llnlxftp/patches/patch-password.c @@ -0,0 +1,13 @@ +$NetBSD: patch-password.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- password.c.orig 2013-03-01 14:03:13.000000000 +0000 ++++ password.c +@@ -155,7 +155,7 @@ char *password; + /* + * create_password_dialog - Create dialog that prompts user for password. + */ +-create_password_dialog() ++static void create_password_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-path.c b/net/llnlxftp/patches/patch-path.c new file mode 100644 index 00000000000..866592e245d --- /dev/null +++ b/net/llnlxftp/patches/patch-path.c @@ -0,0 +1,14 @@ +$NetBSD: patch-path.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- path.c.orig 1995-10-19 15:20:23.000000000 +0000 ++++ path.c +@@ -300,8 +300,7 @@ char *path; + /* + * release_path_links - Release the memory returned by path_to_links(). + */ +-release_path_links(links) +-char **links; ++void release_path_links(char **links) + { + char **ptr = links; + diff --git a/net/llnlxftp/patches/patch-prefs.c b/net/llnlxftp/patches/patch-prefs.c new file mode 100644 index 00000000000..afc1eceb3e7 --- /dev/null +++ b/net/llnlxftp/patches/patch-prefs.c @@ -0,0 +1,22 @@ +$NetBSD: patch-prefs.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- prefs.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ prefs.c +@@ -76,6 +76,8 @@ + #define TEXT 1 + #define NUMBER 2 + ++void create_prefs_dialog(void); ++ + char *anonymous_ftp_password; + char *initial_logfile_name; + int sort_long_lists_by_date; +@@ -444,7 +446,7 @@ XtPointer call_data; + /* + * create_prefs_dialog - Create User Preferences dialog. + */ +-create_prefs_dialog() ++void create_prefs_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-qidialogs.c b/net/llnlxftp/patches/patch-qidialogs.c new file mode 100644 index 00000000000..1d437aeb137 --- /dev/null +++ b/net/llnlxftp/patches/patch-qidialogs.c @@ -0,0 +1,32 @@ +$NetBSD: patch-qidialogs.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- qidialogs.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ qidialogs.c +@@ -57,6 +57,9 @@ + #define YES 1 + #define NO 2 + ++static void create_question_dialog(void); ++static void create_info_dialog(void); ++ + static int info_response; + static int question_response; + static Widget w_question; +@@ -107,7 +110,7 @@ char *question; + /* + * create_question_dialog - Create dialog window to ask user question. + */ +-create_question_dialog() ++static void create_question_dialog(void) + { + static int initialized = False; + Arg args[1]; +@@ -193,7 +196,7 @@ char *information; + /* + * create_info_dialog - Create the information dialog. + */ +-create_info_dialog() ++static void create_info_dialog(void) + { + static int initialized = False; + Arg args[1]; diff --git a/net/llnlxftp/patches/patch-quote.c b/net/llnlxftp/patches/patch-quote.c new file mode 100644 index 00000000000..78021126abd --- /dev/null +++ b/net/llnlxftp/patches/patch-quote.c @@ -0,0 +1,22 @@ +$NetBSD: patch-quote.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- quote.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ quote.c +@@ -63,6 +63,8 @@ + #include "list.h" + #include "str.h" + ++static void create_quote_dialog(void); ++ + struct { + int host; + struct entry_link *head; +@@ -194,7 +196,7 @@ XtPointer call_data; + /* + * create_quote_dialog - Create dialog that prompts for a quoted command. + */ +-create_quote_dialog() ++static void create_quote_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-rconnect.c b/net/llnlxftp/patches/patch-rconnect.c new file mode 100644 index 00000000000..bf56cb9741d --- /dev/null +++ b/net/llnlxftp/patches/patch-rconnect.c @@ -0,0 +1,22 @@ +$NetBSD: patch-rconnect.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- rconnect.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ rconnect.c +@@ -61,6 +61,8 @@ + #include "list.h" + #include "str.h" + ++void create_rconnect_dialog(void); ++ + static struct { + Widget w_dialog; + Widget w_form; +@@ -154,7 +156,7 @@ XtPointer call_data; + /* + * create_rconnect_dialog - Creates the Remote Connection dialog. + */ +-create_rconnect_dialog() ++void create_rconnect_dialog(void) + { + static int initialized = False; + Arg args[2]; diff --git a/net/llnlxftp/patches/patch-rename.c b/net/llnlxftp/patches/patch-rename.c new file mode 100644 index 00000000000..9423cfc1303 --- /dev/null +++ b/net/llnlxftp/patches/patch-rename.c @@ -0,0 +1,22 @@ +$NetBSD: patch-rename.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- rename.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ rename.c +@@ -63,6 +63,8 @@ + #define SKIP 2 + #define CANCEL 3 + ++static void create_rename_dialog(void); ++ + static struct { + Widget w_dialog; + Widget w_form; +@@ -236,7 +238,7 @@ lost: + /* + * create_rename_dialog - Create dialog that prompts for new names. + */ +-create_rename_dialog() ++static void create_rename_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-select.c b/net/llnlxftp/patches/patch-select.c new file mode 100644 index 00000000000..40484524e2f --- /dev/null +++ b/net/llnlxftp/patches/patch-select.c @@ -0,0 +1,22 @@ +$NetBSD: patch-select.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- select.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ select.c +@@ -65,6 +65,8 @@ + #include "list.h" + #include "str.h" + ++static void create_wildcard_dialog(void); ++ + static struct { + Widget w_dialog; + Widget w_form; +@@ -220,7 +222,7 @@ XtPointer call_data; + /* + * create_wildcard_dialog - Create dialog that prompts for wildcard. + */ +-create_wildcard_dialog() ++static void create_wildcard_dialog(void) + { + static int initialized = False; + int i; diff --git a/net/llnlxftp/patches/patch-server.c b/net/llnlxftp/patches/patch-server.c new file mode 100644 index 00000000000..358b93ee761 --- /dev/null +++ b/net/llnlxftp/patches/patch-server.c @@ -0,0 +1,26 @@ +$NetBSD: patch-server.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- server.c.orig 1995-10-19 15:20:24.000000000 +0000 ++++ server.c +@@ -126,9 +126,7 @@ extern struct st_host_info hinfo[]; + * hinfo[host].system and hinfo[host].server + * are set; otherwise a no-op. + */ +-determine_server_from_open(host, reply) +-int host; +-char *reply; ++void determine_server_from_open(int host, char *reply) + { + int i; + +@@ -148,9 +146,7 @@ char *reply; + * hinfo[host].system and hinfo[host].server + * are set; otherwise a no-op. + */ +-determine_server_from_syst(host, reply) +-int host; +-char *reply; ++void determine_server_from_syst(int host, char *reply) + { + int i; + diff --git a/net/llnlxftp/patches/patch-verify.c b/net/llnlxftp/patches/patch-verify.c new file mode 100644 index 00000000000..5bf76e204eb --- /dev/null +++ b/net/llnlxftp/patches/patch-verify.c @@ -0,0 +1,22 @@ +$NetBSD: patch-verify.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- verify.c.orig 1995-10-19 15:20:25.000000000 +0000 ++++ verify.c +@@ -60,6 +60,8 @@ + #define YES 1 + #define NO 2 + ++void create_verify_dialog(void); ++ + struct verify_struct { + Widget w_dialog; + Widget w_form; +@@ -130,7 +132,7 @@ char *question; + /* + * create_verify_dialog - Create selection verification dialog. + */ +-create_verify_dialog() ++void create_verify_dialog(void) + { + static int initialized = False; + Arg args[2]; diff --git a/net/llnlxftp/patches/patch-view2.c b/net/llnlxftp/patches/patch-view2.c new file mode 100644 index 00000000000..8a860419581 --- /dev/null +++ b/net/llnlxftp/patches/patch-view2.c @@ -0,0 +1,33 @@ +$NetBSD: patch-view2.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- view2.c.orig 1995-10-19 15:20:25.000000000 +0000 ++++ view2.c +@@ -72,6 +72,8 @@ + #define VINTERVAL 15*1000 + #define PLACEHOLDER "<>" + ++static void delete_viewer_dir(int pid); ++ + struct view_dialog { + struct view_dialog *next; + Widget w_dialog; +@@ -462,8 +464,7 @@ XtPointer call_data; + * exist, or if unable to delete the directory or its + * contents. + */ +-delete_viewer_dir(pid) +-int pid; ++static void delete_viewer_dir(int pid) + { + char *dir = NULL; + struct viewdir_link *ptr; +@@ -906,8 +907,7 @@ char *file; + * mark_viewdir_for_removal - Flag the directory used by the external + * viewer with "pid" as no longer needed. + */ +-mark_viewdir_for_removal(pid) +-int pid; ++void mark_viewdir_for_removal(int pid) + { + struct viewdir_link *ptr = viewdir_head; + diff --git a/net/llnlxftp/patches/patch-viewprefs.c b/net/llnlxftp/patches/patch-viewprefs.c new file mode 100644 index 00000000000..877a13b7c29 --- /dev/null +++ b/net/llnlxftp/patches/patch-viewprefs.c @@ -0,0 +1,41 @@ +$NetBSD: patch-viewprefs.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- viewprefs.c.orig 1995-10-19 15:20:25.000000000 +0000 ++++ viewprefs.c +@@ -71,6 +71,9 @@ + #define EV_IDENTIFIER "Extension_Viewer:" + #define MAXQUESTION 1000 + ++static void did_user_forget(void); ++static void create_viewprefs_dialog(void); ++ + struct sl_struct *viewer_mappings; + int need_to_save_viewprefs = False; + +@@ -220,7 +223,7 @@ XtPointer call_data; + * create_viewprefs_dialog - Create dialog for specifying which viewer + * should be used with each file type. + */ +-create_viewprefs_dialog() ++static void create_viewprefs_dialog(void) + { + static int initialized = False; + Widget widget; +@@ -704,7 +707,7 @@ construct_viewprefs_filename() + * read_viewprefs_from_file - Initializes current viewer preferences with + * values from .xftpview. + */ +-read_viewprefs_from_file() ++void read_viewprefs_from_file(void) + { + static FILE *fp; + char viewprefs_line[MAXVPLINE+1]; +@@ -1011,7 +1014,7 @@ XtPointer call_data; + * did_user_forget - Make sure that user did not intend to press "Add" + * or "Replace" button. + */ +-did_user_forget() ++static void did_user_forget(void) + { + char *extension = get_extension(); + char question[MAXQUESTION]; diff --git a/net/llnlxftp/patches/patch-xfer1.c b/net/llnlxftp/patches/patch-xfer1.c new file mode 100644 index 00000000000..abc23d5115a --- /dev/null +++ b/net/llnlxftp/patches/patch-xfer1.c @@ -0,0 +1,32 @@ +$NetBSD: patch-xfer1.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- xfer1.c.orig 2013-03-01 14:10:33.000000000 +0000 ++++ xfer1.c +@@ -56,6 +56,8 @@ + #include "xfer.h" + #include "str.h" + ++static void release_xfer_subforest(struct forest_node *node); ++ + struct xfer_ctrl_block xc; + + char *merge_paths(); +@@ -361,7 +363,7 @@ char **full_path; + /* + * print_xfer_forest + */ +-print_xfer_forest() ++static void print_xfer_forest(void) + { + struct forest_node *node[MAXLEVELS]; + int level = 0; +@@ -411,8 +413,7 @@ release_xfer_forest() + /* + * release_xfer_subforest - Release memory used by forest starting at "node". + */ +-release_xfer_subforest(node) +-struct forest_node *node; ++static void release_xfer_subforest(struct forest_node *node) + { + struct forest_node *ptr1; + struct forest_node *ptr2; diff --git a/net/llnlxftp/patches/patch-xfermon.c b/net/llnlxftp/patches/patch-xfermon.c new file mode 100644 index 00000000000..5f0c4b28b2a --- /dev/null +++ b/net/llnlxftp/patches/patch-xfermon.c @@ -0,0 +1,22 @@ +$NetBSD: patch-xfermon.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- xfermon.c.orig 2013-03-01 14:11:21.000000000 +0000 ++++ xfermon.c +@@ -59,6 +59,8 @@ + #include <Xm/TextF.h> + #include "xftp.h" + ++void create_xfermon_dialog(void); ++ + static struct { + Widget w_dialog; + Widget w_controlArea; +@@ -109,7 +111,7 @@ show_xfermon() + /* + * create_xfermon_dialog - Create file transfer monitor. + */ +-create_xfermon_dialog() ++void create_xfermon_dialog(void) + { + static int initialized = False; + XmString label; diff --git a/net/llnlxftp/patches/patch-xftp.c b/net/llnlxftp/patches/patch-xftp.c new file mode 100644 index 00000000000..35d68c1dc05 --- /dev/null +++ b/net/llnlxftp/patches/patch-xftp.c @@ -0,0 +1,38 @@ +$NetBSD: patch-xftp.c,v 1.1 2013/03/02 17:59:41 joerg Exp $ + +--- xftp.c.orig 2013-03-01 13:50:11.000000000 +0000 ++++ xftp.c +@@ -71,20 +71,24 @@ int depth; + Visual *visual; + Window root_window; + ++void read_cache_from_file(void); + void ResizeDirtable(); + void DirtableMouse(); + int cb_create_dialogs(); +-int create_rconnect_dialog(); +-int create_aconnect_dialog(); +-int create_verify_dialog(); +-int create_prefs_dialog(); +-int create_xfermon_dialog(); +-int create_mp_monitor_dialog(); +-int create_changedir_dialog(); +-int create_dirtable_dialog(); +-int create_dirlong_dialog(); ++void create_rconnect_dialog(void); ++void create_aconnect_dialog(void); ++void create_verify_dialog(void); ++void create_prefs_dialog(void); ++void create_xfermon_dialog(void); ++void create_mp_monitor_dialog(void); ++void create_changedir_dialog(void); ++void create_dirtable_dialog(int); ++void create_dirlong_dialog(int); + void cb_quit(); + void reapchild(); ++void create_icon(void); ++void mark_viewdir_for_removal(int pid); ++void read_viewprefs_from_file(void); + + static XtActionsRec actions[] = { + {"ResizeDirtable", ResizeDirtable}, |