Changeset 68 for trunk/src/sh_mounts.c
- Timestamp:
- Oct 30, 2006, 12:03:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_mounts.c
r34 r68 51 51 52 52 /* Prototypes for configuration functions */ 53 int sh_mounts_config_activate (c har * opt);54 int sh_mounts_config_timer (c har * opt);55 int sh_mounts_config_mount (c har * opt);56 int sh_mounts_config_sevmnt (c har * opt);57 int sh_mounts_config_sevopt (c har * opt);53 int sh_mounts_config_activate (const char * opt); 54 int sh_mounts_config_timer (const char * opt); 55 int sh_mounts_config_mount (const char * opt); 56 int sh_mounts_config_sevmnt (const char * opt); 57 int sh_mounts_config_sevopt (const char * opt); 58 58 59 59 /* Prototype for the function to read info on mounted filesystems */ … … 276 276 277 277 /* Configure to check a particular mount */ 278 int sh_mounts_config_mount (c har * opt)278 int sh_mounts_config_mount (const char * opt_in) 279 279 { 280 280 struct sh_mounts_mnt *m; 281 281 struct sh_mounts_opt *o; 282 char *sp, *temp ;282 char *sp, *temp, *opt; 283 283 284 284 SL_ENTER(_("sh_mounts_config_mount")); … … 286 286 /* It's probably best to make a copy of opt before messing about with it 287 287 * via string functions. Good practice and all that. */ 288 temp = sh_util_strdup(opt );288 temp = sh_util_strdup(opt_in); 289 289 290 290 /* Since we're going to "consume" this new buffer, it'll be good to have a 291 291 * 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 */ 293 293 opt = temp; 294 294 … … 327 327 328 328 /* Simply sets our boolean as to whether this module is active */ 329 int sh_mounts_config_activate (c har * opt)329 int sh_mounts_config_activate (const char * opt) 330 330 { 331 331 int i; … … 336 336 337 337 /* Sets up our timer */ 338 int sh_mounts_config_timer (c har * opt)338 int sh_mounts_config_timer (const char * opt) 339 339 { 340 340 long val; … … 357 357 358 358 /* Configure severity for "mount missing" messages */ 359 int sh_mounts_config_sevmnt (c har * opt)359 int sh_mounts_config_sevmnt (const char * opt) 360 360 { 361 361 int retval = 0; … … 370 370 } 371 371 372 int sh_mounts_config_sevopt (c har * opt)372 int sh_mounts_config_sevopt (const char * opt) 373 373 { 374 374 int retval = 0;
Note:
See TracChangeset
for help on using the changeset viewer.