- Timestamp:
- Apr 18, 2009, 5:55:37 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_database.c
r207 r226 1766 1766 /* recursively enter linked list of messages into database, last first 1767 1767 */ 1768 long sh_database_insert_rec (dbins * curr, int depth )1768 long sh_database_insert_rec (dbins * curr, int depth, char * host) 1769 1769 { 1770 1770 unsigned long id = 0; 1771 dbins * prev;1772 1771 1773 1772 SL_ENTER(_("sh_database_insert_rec")); … … 1775 1774 if (curr->next) 1776 1775 { 1776 /* 1777 1777 prev = curr->next; 1778 1778 sl_strlcpy(prev->host, curr->host, 64); 1779 1779 id = sh_database_insert_rec (curr->next, (depth + 1)); 1780 } 1780 */ 1781 ++depth; 1782 id = sh_database_insert_rec (curr->next, depth, curr->host); 1783 } 1784 1785 if (host) 1786 sl_strlcpy(curr->host, host, 64); 1781 1787 1782 1788 if (id != 0) /* this is a server wrapper */ … … 1818 1824 /* recursively enter the linked list into the database 1819 1825 */ 1820 (void) sh_database_insert_rec (db_entry, 0 );1826 (void) sh_database_insert_rec (db_entry, 0, NULL); 1821 1827 1822 1828 SL_RETURN(0, _("sh_database_insert")); -
trunk/src/sh_utils.c
r214 r226 2107 2107 2108 2108 2109 size_t sh_util_base64_enc (unsigned char * out, const unsigned char * instr, 2109 size_t sh_util_base64_enc (unsigned char * out, 2110 const unsigned char * instr, 2110 2111 size_t lin) 2111 2112 { … … 2171 2172 } 2172 2173 2173 size_t sh_util_base64_dec (unsigned char *out, const unsigned char *in, 2174 size_t sh_util_base64_dec (unsigned char *out, 2175 const unsigned char *in, 2174 2176 size_t lin) 2175 2177 {
Note:
See TracChangeset
for help on using the changeset viewer.