- Timestamp:
- Jan 16, 2009, 11:52:26 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain.c
r203 r207 1664 1664 MSG_MOD_FAIL, 1665 1665 _(modList[modnum].name), 1666 status );1666 status+SH_MOD_OFFSET); 1667 1667 } else { 1668 1668 sh_error_handle ((-1), FIL__, __LINE__, status, MSG_MOD_FAIL, 1669 1669 _(modList[modnum].name), 1670 status );1670 status+SH_MOD_OFFSET); 1671 1671 } 1672 1672 modList[modnum].initval = SH_MOD_FAILED; … … 1832 1832 status, MSG_MOD_FAIL, 1833 1833 _(modList[modnum].name), 1834 status );1834 status+SH_MOD_OFFSET); 1835 1835 } else { 1836 1836 sh_error_handle ((-1), FIL__, __LINE__, 1837 1837 status, MSG_MOD_FAIL, 1838 1838 _(modList[modnum].name), 1839 status );1839 status+SH_MOD_OFFSET); 1840 1840 } 1841 1841 modList[modnum].initval = SH_MOD_FAILED; … … 2073 2073 if (0 != (status = modList[modnum].mod_check())) 2074 2074 sh_error_handle ((-1), FIL__, __LINE__, status, MSG_MOD_EXEC, 2075 _(modList[modnum].name), (long) status);2075 _(modList[modnum].name), (long) (status+SH_MOD_OFFSET)); 2076 2076 } 2077 2077 -
trunk/src/sh_database.c
r170 r207 112 112 char acl_new[1024]; 113 113 114 longlong_data[20];114 unsigned long ulong_data[20]; 115 115 116 116 /* … … 870 870 ******************************************************************/ 871 871 872 #if def HAVE_PGSQL_LIBPQ_FE_H872 #if defined(HAVE_PGSQL_LIBPQ_FE_H) 873 873 #include <pgsql/libpq-fe.h> 874 #elif defined(HAVE_POSTGRESQL_LIBPQ_FE_H) 875 #include <postgresql/libpq-fe.h> 874 876 #else 877 #if !defined(USE_UNO) 875 878 #include <libpq-fe.h> 879 #else 880 #include <postgresql/libpq-fe.h> 881 #endif 876 882 #endif 877 883 … … 1395 1401 { 1396 1402 (void) 1397 sl_snprintf(end, (size_t)(size-1), _(",\'%l d\'"),1398 db_entry-> long_data[attr_tab[i].val-START_SEC_LONGS]);1403 sl_snprintf(end, (size_t)(size-1), _(",\'%lu\'"), 1404 db_entry->ulong_data[attr_tab[i].val-START_SEC_LONGS]); 1399 1405 while (*end != '\0') { ++end; --size; } 1400 1406 (void) sl_snprintf(c_end, (size_t)(c_size-1), … … 1406 1412 (void) 1407 1413 md5Update(&crc, 1408 (sh_byte *) db_entry-> long_data[attr_tab[i].val-START_SEC_LONGS],1414 (sh_byte *) db_entry->ulong_data[attr_tab[i].val-START_SEC_LONGS], 1409 1415 sizeof(long)); 1410 1416 /*@+type@*/ … … 1718 1724 else if (res->val >= START_SEC_LONGS) 1719 1725 { 1720 db_entry->long_data[res->val-START_SEC_LONGS] 1721 = atol(&p[j+2]); 1726 db_entry->ulong_data[res->val-START_SEC_LONGS] 1727 = strtoul(&p[j+2], (char **) NULL, 10); 1728 /* atol(&p[j+2]); */ 1722 1729 } 1723 1730
Note:
See TracChangeset
for help on using the changeset viewer.