Skip to content
This repository was archived by the owner on Oct 23, 2021. It is now read-only.

Commit 7766f33

Browse files
committed
version 0.25
1 parent f33f8f7 commit 7766f33

File tree

4 files changed

+20
-27
lines changed

4 files changed

+20
-27
lines changed

Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v0.25 not release
1+
v0.25 2016-02-24
22
* More accurate local device identification
33

44
v0.24 2015-12-20

src/devs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,6 @@ localDevs (void)
165165

166166
pthread_mutex_unlock (&mutex);
167167

168-
for (index = 0; list[index]; ++index)
169-
{
170-
puts (list[index]);
171-
}
172-
173168
if (text)
174169
{
175170
for (index = 0; text[index]; ++index)

src/group.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ addGroup (const char * const group)
4646
strcat (cmd, SUDODEV_GROUP);
4747
4848
return !system (cmd);
49-
* } */
50-
49+
* } then { */
5150
FILE *fh;
5251
char **list;
5352
char *id;
@@ -183,5 +182,6 @@ addGroup (const char * const group)
183182
}
184183

185184
return 1;
185+
/* } // End then */
186186
}
187187

src/sudodevd.c

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,21 @@ eventloop (void)
413413
exit (1);
414414
}
415415

416-
/* Now we use a faster way to find matched UUID { */
416+
/* TODO: Use a better algorithm to find match uuid { *
417+
work = 0;
418+
for (index = 0; sysdevs && sysdevs[index]; ++index)
419+
{
420+
for (index2 = 0; sudodevs && sudodevs[index2]; ++index2)
421+
{
422+
if (!strcmp (sysdevs[index], sudodevs[index2]))
423+
{
424+
work = 1;
425+
goto OUT;
426+
}
427+
}
428+
}
429+
OUT:
430+
* } then { */
417431
pthread_mutex_lock (&mutex);
418432

419433
for (index = 0; sysdevs[index]; ++index);
@@ -458,27 +472,11 @@ eventloop (void)
458472

459473
if (all)
460474
{
461-
/* Only free all here */
475+
/* Only free here */
462476
free (all);
463477
all = NULL;
464478
}
465-
/* } */
466-
467-
/* TODO: Use a better algorithm to find match uuid { *
468-
work = 0;
469-
for (index = 0; sysdevs && sysdevs[index]; ++index)
470-
{
471-
for (index2 = 0; sudodevs && sudodevs[index2]; ++index2)
472-
{
473-
if (!strcmp (sysdevs[index], sudodevs[index2]))
474-
{
475-
work = 1;
476-
goto OUT;
477-
}
478-
}
479-
}
480-
OUT:
481-
* } */
479+
/* } // End then */
482480

483481
if (work != working)
484482
{

0 commit comments

Comments
 (0)