Print this page
8485 Remove set but unused variables in usr/src/cmd
*** 1,9 ****
--- 1,10 ----
/***************************************************************************
*
* addon-storage.c : watch removable media state changes
*
+ * Copyright 2017 Gary Mills
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Licensed under the Academic Free License version 2.1
*
*** 316,327 ****
char *device_file, *raw_device_file;
DBusError error;
char *bus;
char *drive_type;
int state, last_state;
- char *support_media_changed_str;
- int support_media_changed;
int fd = -1;
if ((udi = getenv ("UDI")) == NULL)
goto out;
if ((device_file = getenv ("HAL_PROP_BLOCK_DEVICE")) == NULL)
--- 317,326 ----
*** 339,354 ****
setup_logger ();
sysevent_init ();
- support_media_changed_str = getenv ("HAL_PROP_STORAGE_CDROM_SUPPORT_MEDIA_CHANGED");
- if (support_media_changed_str != NULL && strcmp (support_media_changed_str, "true") == 0)
- support_media_changed = TRUE;
- else
- support_media_changed = FALSE;
-
dbus_error_init (&error);
if ((ctx = libhal_ctx_init_direct (&error)) == NULL) {
goto out;
}
--- 338,347 ----