Changeset 170 for trunk/src/sh_database.c
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_database.c
r116 r170 61 61 char msg[1024]; 62 62 char sev[8]; 63 char path[ 12288];63 char path[MAX_PATH_STORE+1]; 64 64 char user[9]; 65 65 char group[9]; … … 82 82 char interface[64]; 83 83 char ltime[64]; 84 char dir[ 1024];85 char linked_path[ 1024];84 char dir[MAX_PATH_STORE+1]; 85 char linked_path[MAX_PATH_STORE+1]; 86 86 char service[64]; 87 87 char facility[32]; … … 107 107 char chksum_old[50]; 108 108 char chksum_new[50]; 109 char link_old[ 1024];110 char link_new[ 1024];109 char link_old[MAX_PATH_STORE+1]; 110 char link_new[MAX_PATH_STORE+1]; 111 111 char acl_old[1024]; 112 112 char acl_new[1024]; … … 134 134 { NULL, N_("msg"), 0, 4, 1024, 0, offsetof(struct dbins_, msg) }, 135 135 136 { NULL, N_("path"), 0, 5, 12288, 0, offsetof(struct dbins_, path) },136 { NULL, N_("path"), 0, 5,MAX_PATH_STORE+1, 0, offsetof(struct dbins_, path) }, 137 137 /* username -> userid; replace (long) 'userid' - below - by 'dummy' */ 138 138 { NULL, N_("userid"), 0, 6, 9, 0, offsetof(struct dbins_, user) }, … … 155 155 { NULL, N_("interface"), 0, 24, 64, 0, offsetof(struct dbins_, interface)}, 156 156 { NULL, N_("time"), 0, 25, 64, 0, offsetof(struct dbins_, ltime) }, 157 { NULL, N_("dir"), 0, 26, 1024, 0, offsetof(struct dbins_, dir) },158 { NULL, N_("linked_path"), 0, 27, 1024, 0, offsetof(struct dbins_, linked_path)},157 { NULL, N_("dir"), 0, 26, MAX_PATH_STORE+1, 0, offsetof(struct dbins_, dir) }, 158 { NULL, N_("linked_path"), 0, 27, MAX_PATH_STORE+1, 0, offsetof(struct dbins_, linked_path)}, 159 159 { NULL, N_("service"), 0, 29, 64, 0, offsetof(struct dbins_, service)}, 160 160 { NULL, N_("facility"), 0, 30, 32, 0, offsetof(struct dbins_, facility) }, … … 178 178 { NULL, N_("chksum_old"), 0, 47, 50, 0, offsetof(struct dbins_, chksum_old)}, 179 179 { NULL, N_("chksum_new"), 0, 48, 50, 0, offsetof(struct dbins_, chksum_new)}, 180 { NULL, N_("link_old"), 0, 49, 1024, 0, offsetof(struct dbins_, link_old)},181 { NULL, N_("link_new"), 0, 50, 1024, 0, offsetof(struct dbins_, link_new)},180 { NULL, N_("link_old"), 0, 49, MAX_PATH_STORE+1, 0, offsetof(struct dbins_, link_old)}, 181 { NULL, N_("link_new"), 0, 50, MAX_PATH_STORE+1, 0, offsetof(struct dbins_, link_new)}, 182 182 183 183 { NULL, N_("size_old"), 0, 51, 0, 0, 0 }, … … 1034 1034 static int connection_status = S_FALSE; 1035 1035 1036 void sh_database_reset( )1036 void sh_database_reset(void) 1037 1037 { 1038 1038 connection_status = S_FALSE; … … 1226 1226 } 1227 1227 1228 #define SH_QUERY_MAX 16383 1228 #define SH_QUERY_MAX SH_MSG_BUF 1229 /* define SH_QUERY_MAX 16383 */ 1229 1230 1230 1231 static … … 1450 1451 static int sh_database_comp_attr (const void *m1, const void *m2) 1451 1452 { 1452 my_attr *mi1 = (my_attr *) m1;1453 my_attr *mi2 = (my_attr *) m2;1453 const my_attr *mi1 = (const my_attr *) m1; 1454 const my_attr *mi2 = (const my_attr *) m2; 1454 1455 return strcmp(mi1->attr, mi2->attr); 1455 1456 } 1456 1457 1457 1458 1458 static void init_attr_table( )1459 static void init_attr_table(void) 1459 1460 { 1460 1461 static int first = S_TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.