Changeset 22 for trunk/src/sh_database.c


Ignore:
Timestamp:
Feb 23, 2006, 12:03:58 AM (19 years ago)
Author:
rainer
Message:

Minor code revisions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_database.c

    r18 r22  
    4040#include "sh_error.h"
    4141#include "sh_utils.h"
    42 
    43 extern int safe_logger (int signal, int method, pid_t thepid);
    4442
    4543#undef  FIL__
     
    253251static int  sh_persistent_dbconn = S_TRUE;
    254252
    255 int sh_database_use_persistent (char * str)
     253int sh_database_use_persistent (const char * str)
    256254{
    257255  return sh_util_flagval (str, &sh_persistent_dbconn);
    258256}
    259257
    260 static int insert_value (char * ptr, char * str)
     258static int insert_value (char * ptr, const char * str)
    261259{
    262260  if (!ptr || !str)
     
    276274 
    277275
    278 int sh_database_set_database (char * str)
     276int sh_database_set_database (const char * str)
    279277{
    280278  return insert_value (db_name, str);
    281279}
    282 int sh_database_set_table (char * str)
     280int sh_database_set_table (const char * str)
    283281{
    284282  return insert_value (db_table, str);
    285283}
    286 int sh_database_set_host (char * str)
     284int sh_database_set_host (const char * str)
    287285{
    288286  return insert_value (db_host, str);
    289287}
    290 int sh_database_set_user (char * str)
     288int sh_database_set_user (const char * str)
    291289{
    292290  return insert_value (db_user, str);
    293291}
    294 int sh_database_set_password (char * str)
     292int sh_database_set_password (const char * str)
    295293{
    296294  return insert_value (db_password, str);
     
    568566 oracle_doconnect:
    569567
    570   if (!getenv("ORACLE_HOME"))
     568  if (!getenv("ORACLE_HOME")) /* flawfinder: ignore */
    571569    {
    572570      sh_error_handle((-1), FIL__, __LINE__, 0, MSG_E_SUBGEN,
     
    14821480}
    14831481
    1484 int sh_database_add_to_hash  (char * str)
     1482int sh_database_add_to_hash  (const char * str)
    14851483{
    14861484  int i;
     
    16921690static int enter_wrapper = 1;
    16931691
    1694 int set_enter_wrapper (char * str)
     1692int set_enter_wrapper (const char * str)
    16951693{
    16961694  return sh_util_flagval(str, &enter_wrapper);
Note: See TracChangeset for help on using the changeset viewer.