diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2008-08-27 20:13:37 +0200 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2008-08-27 20:13:37 +0200 | 
| commit | 35c816551da6c423d9ee84362ef387a2643a5e7d (patch) | |
| tree | 58b490e4963eaa681ea7a9be5e83ce8932af15be /src/main.c | |
| parent | 88a2c4e2ffb069cb0535f7bab613da114002dab0 (diff) | |
Remove unused alloc_device_opts() function
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 21 | 
1 files changed, 0 insertions, 21 deletions
| @@ -177,27 +177,6 @@ static inline void init_device_defaults(struct device_opts *device_opts)  	device_opts->discovto = HCID_DEFAULT_DISCOVERABLE_TIMEOUT;  } -struct device_opts *alloc_device_opts(char *ref) -{ -	struct device_list *device; - -	device = g_try_new(struct device_list, 1); -	if (!device) { -		info("Can't allocate devlist opts buffer: %s (%d)", -							strerror(errno), errno); -		exit(1); -	} - -	device->ref = g_strdup(ref); -	device->next = device_list; -	device_list = device; - -	memcpy(&device->opts, &default_device, sizeof(struct device_opts)); -	device->opts.name = g_strdup(default_device.name); - -	return &device->opts; -} -  static void free_device_opts(void)  {  	struct device_list *device, *next; | 
