diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-17 18:52:52 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-17 18:52:52 +0000 |
| commit | 926315e15e79fc31881f9726bc0f052eaa327afa (patch) | |
| tree | 81d478d06d373a00d6b7b7df3be53cf30296f067 /src | |
| parent | 0a6d151098a232878e0243668e276f03bf0d8434 (diff) | |
| download | zabbix-926315e15e79fc31881f9726bc0f052eaa327afa.tar.gz zabbix-926315e15e79fc31881f9726bc0f052eaa327afa.tar.xz zabbix-926315e15e79fc31881f9726bc0f052eaa327afa.zip | |
- fix of agent crash on 64 bit platforms in CKSUM() (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1664 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
| -rw-r--r-- | src/zabbix_agent/sysinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c index 25283cc2..1f495040 100644 --- a/src/zabbix_agent/sysinfo.c +++ b/src/zabbix_agent/sysinfo.c @@ -649,7 +649,9 @@ int CKSUM(const char *cmd, const char *filename,double *value) { register u_char *p; register int nr; - register u_long crc, len; +/* AV Crashed under 64 platforms. Must be 32 bit! */ +/* register u_long crc, len;*/ + register uint32_t crc, len; u_char buf[16 * 1024]; u_long cval, clen; int fd; |
