Changeset 207 for trunk/src/sh_database.c
- Timestamp:
- Jan 16, 2009, 11:52:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.