Changeset 68 for trunk/src/sh_mounts.c


Ignore:
Timestamp:
Oct 30, 2006, 12:03:44 AM (18 years ago)
Author:
rainer
Message:

Update trunk to samhain 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_mounts.c

    r34 r68  
    5151
    5252/* Prototypes for configuration functions */
    53 int sh_mounts_config_activate (char * opt);
    54 int sh_mounts_config_timer    (char * opt);
    55 int sh_mounts_config_mount    (char * opt);
    56 int sh_mounts_config_sevmnt   (char * opt);
    57 int sh_mounts_config_sevopt   (char * opt);
     53int sh_mounts_config_activate (const char * opt);
     54int sh_mounts_config_timer    (const char * opt);
     55int sh_mounts_config_mount    (const char * opt);
     56int sh_mounts_config_sevmnt   (const char * opt);
     57int sh_mounts_config_sevopt   (const char * opt);
    5858
    5959/* Prototype for the function to read info on mounted filesystems */
     
    276276
    277277/* Configure to check a particular mount */
    278 int sh_mounts_config_mount (char * opt)
     278int sh_mounts_config_mount (const char * opt_in)
    279279{
    280280  struct sh_mounts_mnt *m;
    281281  struct sh_mounts_opt *o;
    282   char *sp, *temp;
     282  char *sp, *temp, *opt;
    283283
    284284  SL_ENTER(_("sh_mounts_config_mount"));
     
    286286  /* It's probably best to make a copy of opt before messing about with it
    287287   * via string functions. Good practice and all that. */
    288   temp = sh_util_strdup(opt);
     288  temp = sh_util_strdup(opt_in);
    289289
    290290  /* Since we're going to "consume" this new buffer, it'll be good to have a
    291291   * reference to it's allocated memory so we can free it later. Let's use
    292    * temp for that, and the now-unused "opt" for consumption */
     292   * temp for that, and "opt" for consumption */
    293293  opt = temp;
    294294 
     
    327327
    328328/* Simply sets our boolean as to whether this module is active */
    329 int sh_mounts_config_activate (char * opt)
     329int sh_mounts_config_activate (const char * opt)
    330330{
    331331  int i;
     
    336336
    337337/* Sets up our timer */
    338 int sh_mounts_config_timer (char * opt)
     338int sh_mounts_config_timer (const char * opt)
    339339{
    340340  long val;
     
    357357
    358358/* Configure severity for "mount missing" messages */
    359 int sh_mounts_config_sevmnt  (char * opt)
     359int sh_mounts_config_sevmnt  (const char * opt)
    360360{
    361361  int retval = 0;
     
    370370}
    371371
    372 int sh_mounts_config_sevopt  (char * opt)
     372int sh_mounts_config_sevopt  (const char * opt)
    373373{
    374374  int retval = 0;
Note: See TracChangeset for help on using the changeset viewer.