diff options
author | Chin-San Huang <chinsan@FreeBSD.org> | 2007-07-07 13:54:20 +0000 |
---|---|---|
committer | Chin-San Huang <chinsan@FreeBSD.org> | 2007-07-07 13:54:20 +0000 |
commit | 02d2fd5c1c0ef9da34fdd320b5635ea62b28d729 (patch) | |
tree | 70c1372ad32ff4821e42fe1559c25d9294987775 /security/gwee/files | |
parent | e1757b682edfa0433d7d6be39142666299a812c5 (diff) | |
download | ports-02d2fd5c1c0ef9da34fdd320b5635ea62b28d729.tar.gz ports-02d2fd5c1c0ef9da34fdd320b5635ea62b28d729.zip |
- Unbreak on gcc 4.x.
Noticed by: {kris,pav} via pointyhat
Patched by: rafan (mentor)
Approved by: rafan (mentor)
Notes
Notes:
svn path=/head/; revision=195154
Diffstat (limited to 'security/gwee/files')
-rw-r--r-- | security/gwee/files/patch-gwee.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/security/gwee/files/patch-gwee.c b/security/gwee/files/patch-gwee.c new file mode 100644 index 000000000000..3fc6641f7fcf --- /dev/null +++ b/security/gwee/files/patch-gwee.c @@ -0,0 +1,14 @@ +--- gwee.c.orig Thu Jul 5 10:41:27 2007 ++++ gwee.c Thu Jul 5 10:41:48 2007 +@@ -2767,8 +2767,8 @@ + #endif + return 1; + } +- (uint32_t)binary_ip = ((uint32_t *)he->h_addr_list[0])[0]; +- (uint32_t)xored_ip = ((uint32_t *)he->h_addr_list[0])[0] ^ XOR; ++ binary_ip = ((uint32_t *)he->h_addr_list[0])[0]; ++ xored_ip = ((uint32_t *)he->h_addr_list[0])[0] ^ XOR; + + /* save ip in ascii dot notation form */ + snprintf(ascii_ip, sizeof(ascii_ip), "%u.%u.%u.%u", + |