diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-14 13:58:16 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-14 13:58:16 +0000 |
| commit | defe96ffc6fa2685dc6b34e877567caa43a34338 (patch) | |
| tree | c47f43f3c83297ab4a8f09149415d1c86d9dc725 /src/libs | |
| parent | b5a02c0073d8ae78385379bc7314e95a52fc38b0 (diff) | |
- fixed compilation warnings under HP-UX 11.00. Thanks to Andris Mednis. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2187 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/zbxsysinfo/common/common.c | 4 | ||||
| -rw-r--r-- | src/libs/zbxsysinfo/common/ntp.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/zbxsysinfo/common/common.c b/src/libs/zbxsysinfo/common/common.c index 88dae787..de20073e 100644 --- a/src/libs/zbxsysinfo/common/common.c +++ b/src/libs/zbxsysinfo/common/common.c @@ -502,9 +502,9 @@ int VFS_FILE_MD5SUM(const char *cmd, const char *filename, char **value) /* Convert MD5 hash to text form */ for(i=0;i<MD5_DIGEST_SIZE;i++) - sprintf(&hashText[i<<1],"%02x",hash[i]); + sprintf((char *)&hashText[i<<1],"%02x",hash[i]); - *value=strdup(hashText); + *value=strdup((char *)hashText); return SYSINFO_RET_OK; } diff --git a/src/libs/zbxsysinfo/common/ntp.c b/src/libs/zbxsysinfo/common/ntp.c index 4ecfe10a..f33bc8e8 100644 --- a/src/libs/zbxsysinfo/common/ntp.c +++ b/src/libs/zbxsysinfo/common/ntp.c @@ -214,7 +214,7 @@ int check_ntp(char *host, int port, int *value_int) { int s; int len; - char c[MAX_STRING_LEN]; + unsigned char c[MAX_STRING_LEN]; char *e; struct hostent *hp; |
