Subversion Repositories Projects

Rev

Rev 484 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 484 Rev 486
Line 30... Line 30...
30
  evdevs_count = scandir(evdev_path, &files, file_select, NULL);
30
  evdevs_count = scandir(evdev_path, &files, file_select, NULL);
Line 31... Line 31...
31
 
31
 
Line 32... Line 32...
32
  printf("%d inputs found in %s\n" , evdevs_count,evdev_path);
32
  printf("%d inputs found in %s\n" , evdevs_count,evdev_path);
33
 
33
 
34
  int i=0;
34
  int i=0;
Line 35... Line 35...
35
  for (i=1;i<evdevs_count+1;++i)
35
  for (i=0;i<evdevs_count;++i)
36
    {
36
    {
37
 
37
 
Line 38... Line 38...
38
      printf("%s",files[i-1]->d_name);
38
      printf("%s",files[i]->d_name);
39
      sprintf(evdevs[i].fname,"%s%s",evdev_path,files[i-1]->d_name);
39
      sprintf(evdevs[i].fname,"%s%s",evdev_path,files[i]->d_name);
40
      int act_fd;
40
      int act_fd;