[Debian-iot-packaging] [openzwave-controlpanel] 67/81: Uses a default port if one is not provided
Dara Adib
daradib-guest at moszumanska.debian.org
Thu Dec 22 16:57:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.
commit 7b28877d14fe09831f39dcd8d0494d63d650082f
Author: Walter Huf <hufman at gmail.com>
Date: Tue Jan 26 21:26:57 2016 -0600
Uses a default port if one is not provided
---
ozwcp.cpp | 2 +-
ozwcp.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ozwcp.cpp b/ozwcp.cpp
index 50b25e5..4b090d3 100644
--- a/ozwcp.cpp
+++ b/ozwcp.cpp
@@ -770,7 +770,7 @@ int32 main(int32 argc, char* argv[])
{
int32 i;
extern char *optarg;
- long webport;
+ long webport = DEFAULT_PORT;
char *ptr;
while ((i = getopt(argc, argv, "dp:")) != EOF)
diff --git a/ozwcp.h b/ozwcp.h
index 7f8e0c0..85796f7 100644
--- a/ozwcp.h
+++ b/ozwcp.h
@@ -51,6 +51,7 @@
using namespace OpenZWave;
#define MAX_NODES 255
+#define DEFAULT_PORT 8090
extern const char *valueGenreStr(ValueID::ValueGenre);
extern ValueID::ValueGenre valueGenreNum(char const *);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git
More information about the Debian-iot-packaging
mailing list