diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-05 12:21:22 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-05 12:21:22 +0000 |
commit | 89d3eeaeca6e97fe488c2f110971d197f5c0baa3 (patch) | |
tree | c55916e913414c61c2fe31b431162ef1e003f750 /dns/ddup/files/patch-parse_option.c | |
parent | Update to 2.1024 (diff) |
Update: net/ddup (3.0.1)
this patch set updates ddup to make it conformant w/
http://clients.dyndns.org/devel/query.php
major changes where done by robert@castley.com, so, don't
forget to give him credits in the CVS logs.
PR: ports/40966
Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Notes
Notes:
svn path=/head/; revision=74852
Diffstat (limited to 'dns/ddup/files/patch-parse_option.c')
-rw-r--r-- | dns/ddup/files/patch-parse_option.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dns/ddup/files/patch-parse_option.c b/dns/ddup/files/patch-parse_option.c new file mode 100644 index 000000000000..43bd0f4ae625 --- /dev/null +++ b/dns/ddup/files/patch-parse_option.c @@ -0,0 +1,31 @@ +--- parse_option.c.orig Sat Sep 30 21:06:27 2000 ++++ parse_option.c Thu Jul 25 06:46:57 2002 +@@ -30,6 +30,8 @@ + int backmx_flag = 0; + /* Flag set by '--static' (Added by Patrick D.) */ + int static_flag = 0; ++int dynamic_flag = 0; ++int custom_flag = 0; + /* Vars for other options */ + char *ip_address; + char *host_id; +@@ -51,6 +53,8 @@ + {"version", 0, &ver_flag, 1}, + /* Added by Patrick D. */ + {"static", 0, &static_flag, 1}, ++ {"dynamic", 0, &dynamic_flag, 1}, ++ {"custom", 0, &custom_flag, 1}, + /* These options don't set a flag. + We distinguish them by their indices. */ + {"ip", 1, 0, 0}, +@@ -98,6 +102,10 @@ + } + } + ++ if (static_flag+dynamic_flag+custom_flag > 1) { ++ fprintf(stderr, "ddup: --static, --dynamic and --custom options are mutually exclusive.\n"); ++ help_flag = 1; ++ } + if (help_flag) { + usage(); + } |