/alps/fwbench

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/fwbench

« back to all changes in this revision

Viewing changes to seqreader.c

  • Committer: Suren A. Chilingaryan
  • Date: 2012-04-14 00:13:28 UTC
  • Revision ID: csa@dside.dyndns.org-20120414001328-751a608ngiam9j0d
Properly check for devices in seqreader

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        exit(0);
38
38
    }
39
39
    
40
 
    if (!strstr(argv[0], "/dev/")) {
 
40
    if (strstr(argv[1], "/dev/")) {
41
41
        int fd = open(argv[1], O_RDONLY|O_NOATIME|O_LARGEFILE/*|O_DIRECT*/, 0);
42
42
        if (fd < 0) {
43
43
            printf("Unable to open device %s\n", argv[1]);