diff options
author | pav <pav@FreeBSD.org> | 2005-02-15 22:03:12 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-02-15 22:03:12 +0000 |
commit | 73f823e083c89fe24c376beabb8e532eb24d5b22 (patch) | |
tree | 5a55465bea9337a1943843a5919ba3427d2f3cae /sysutils | |
parent | 41c9302d8cb492fab910f0383bb9fd5f575ab75f (diff) | |
download | FreeBSD-ports-73f823e083c89fe24c376beabb8e532eb24d5b22.zip FreeBSD-ports-73f823e083c89fe24c376beabb8e532eb24d5b22.tar.gz |
- Fix runtime problem on amd64
PR: ports/77479, ports/77564
Submitted by: Kay Lehmann <kay_lehmann@web.de> (maintainer)
Reported by: Axel Gonzalez <loox@e-shell.net>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/lineakd/Makefile | 1 | ||||
-rw-r--r-- | sysutils/lineakd/files/patch-lineak__defloader.cpp | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/lineakd/Makefile b/sysutils/lineakd/Makefile index 52ef173..bb7cd394 100644 --- a/sysutils/lineakd/Makefile +++ b/sysutils/lineakd/Makefile @@ -7,6 +7,7 @@ PORTNAME= lineakd PORTVERSION= 0.8.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=lineak diff --git a/sysutils/lineakd/files/patch-lineak__defloader.cpp b/sysutils/lineakd/files/patch-lineak__defloader.cpp new file mode 100644 index 0000000..3523df5 --- /dev/null +++ b/sysutils/lineakd/files/patch-lineak__defloader.cpp @@ -0,0 +1,27 @@ +--- lineak/defloader.cpp.orig Tue Feb 15 18:28:46 2005 ++++ lineak/defloader.cpp Tue Feb 15 18:28:49 2005 +@@ -129,7 +129,7 @@ + // Handle empty lines. + loc = tmp.find('='); + // empty line +- if (loc == string::npos) ++ if (loc == (unsigned int)string::npos) + continue; + + // key == the name of the key. +@@ -157,13 +157,13 @@ + //cout << akey; + /** Now determine if this is a toggleable key. We will have to parse + the name format name1|name2 if indeed it is a toggleable key. */ +- if ((unsigned int)key.find('|') != string::npos) { ++ if ((unsigned int)key.find('|') != (unsigned int)string::npos) { + key+='|'; + akey->setToggle(true); + int index; + string tmp; + //vector<string>names; +- while (((unsigned int)(index = key.find('|'))) != string::npos) { ++ while (((unsigned int)(index = key.find('|'))) != (unsigned int)string::npos) { + tmp = key.substr(0,index); + //cout << "adding toggle name: " << tmp << " to " << akey->getName() << endl; + akey->addToggleName(tmp); |