aboutsummaryrefslogtreecommitdiff
path: root/ftp/atftp/files/patch-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/atftp/files/patch-options.c')
-rw-r--r--ftp/atftp/files/patch-options.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ftp/atftp/files/patch-options.c b/ftp/atftp/files/patch-options.c
new file mode 100644
index 000000000000..fd96417175f2
--- /dev/null
+++ b/ftp/atftp/files/patch-options.c
@@ -0,0 +1,15 @@
+--- options.c.orig 2003-04-25 08:16:18.000000000 +0800
++++ options.c 2010-10-11 10:23:20.000000000 +0800
+@@ -273,6 +273,12 @@
+ return ERR;
+ }
+
++int opt_equal(struct tftp_opt *opt1, struct tftp_opt *opt2)
++{
++ return ((strncmp(opt1->option, opt2->option, OPT_SIZE) == 0) &&
++ (strncmp(opt1->value, opt2->value, OPT_SIZE) == 0));
++}
++
+ void opt_set_tsize(int tsize, struct tftp_opt *options)
+ {
+ snprintf(options[OPT_TSIZE].value, VAL_SIZE, "%d", tsize);