Changeset 22 for trunk/src/sh_database.c
- Timestamp:
- Feb 23, 2006, 12:03:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_database.c
r18 r22 40 40 #include "sh_error.h" 41 41 #include "sh_utils.h" 42 43 extern int safe_logger (int signal, int method, pid_t thepid);44 42 45 43 #undef FIL__ … … 253 251 static int sh_persistent_dbconn = S_TRUE; 254 252 255 int sh_database_use_persistent (c har * str)253 int sh_database_use_persistent (const char * str) 256 254 { 257 255 return sh_util_flagval (str, &sh_persistent_dbconn); 258 256 } 259 257 260 static int insert_value (char * ptr, c har * str)258 static int insert_value (char * ptr, const char * str) 261 259 { 262 260 if (!ptr || !str) … … 276 274 277 275 278 int sh_database_set_database (c har * str)276 int sh_database_set_database (const char * str) 279 277 { 280 278 return insert_value (db_name, str); 281 279 } 282 int sh_database_set_table (c har * str)280 int sh_database_set_table (const char * str) 283 281 { 284 282 return insert_value (db_table, str); 285 283 } 286 int sh_database_set_host (c har * str)284 int sh_database_set_host (const char * str) 287 285 { 288 286 return insert_value (db_host, str); 289 287 } 290 int sh_database_set_user (c har * str)288 int sh_database_set_user (const char * str) 291 289 { 292 290 return insert_value (db_user, str); 293 291 } 294 int sh_database_set_password (c har * str)292 int sh_database_set_password (const char * str) 295 293 { 296 294 return insert_value (db_password, str); … … 568 566 oracle_doconnect: 569 567 570 if (!getenv("ORACLE_HOME")) 568 if (!getenv("ORACLE_HOME")) /* flawfinder: ignore */ 571 569 { 572 570 sh_error_handle((-1), FIL__, __LINE__, 0, MSG_E_SUBGEN, … … 1482 1480 } 1483 1481 1484 int sh_database_add_to_hash (c har * str)1482 int sh_database_add_to_hash (const char * str) 1485 1483 { 1486 1484 int i; … … 1692 1690 static int enter_wrapper = 1; 1693 1691 1694 int set_enter_wrapper (c har * str)1692 int set_enter_wrapper (const char * str) 1695 1693 { 1696 1694 return sh_util_flagval(str, &enter_wrapper);
Note:
See TracChangeset
for help on using the changeset viewer.