1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/sysutils/apachetop/files/patch-src_inlines.cc
Kurt Jaeger 5a372742d0 sysutils/apachetop: update 0.12.6 -> 0.18.4
- moved to github
- Fix compile
- Fix mis-spelled word

PR:		227865
Submitted by:	ndowens@yahoo.com
Reported by:	Thomas-Henning von Kamptz <tomsoft@mac.com>
Reviewed by:	koobs, danfe
Approved by:	Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer)
2018-12-18 22:03:42 +00:00

38 lines
951 B
C++

--- src/inlines.cc.orig 2018-08-28 11:21:23 UTC
+++ src/inlines.cc
@@ -4,10 +4,10 @@
#define ONE_EIGHTH 4
#define HIGH_BITS (~((unsigned int)(~0) >> ONE_EIGHTH))
-inline unsigned int StringHash(register const char *str)
+inline unsigned int StringHash( const char *str)
{
- register unsigned int val;
- register unsigned int i;
+ unsigned int val;
+ unsigned int i;
for (val = 0; *str; str++)
{
@@ -19,9 +19,9 @@ inline unsigned int StringHash(register const char *st
return val;
}
-inline unsigned int QuickHash(register const char *str)
+inline unsigned int QuickHash( const char *str)
{
- register unsigned int val, tmp;
+ unsigned int val, tmp;
for(val = 0 ; *str ; str++)
{
@@ -32,7 +32,7 @@ inline unsigned int QuickHash(register const char *str
return val;
}
-inline unsigned long TTHash(register const char *str)
+inline unsigned long TTHash( const char *str)
{
unsigned long hash = 5381;
int c;