System cmds: Move to 0 based index

This commit is contained in:
Lorenz Meier
2015-02-09 22:56:22 +01:00
parent 2f4d820063
commit ac155b0fac
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -124,10 +124,10 @@ int test_tone(int argc, char *argv[])
int fd, result;
unsigned long tone;
fd = open(TONEALARM_DEVICE_PATH, O_WRONLY);
fd = open(TONEALARM0_DEVICE_PATH, O_WRONLY);
if (fd < 0) {
printf("failed opening " TONEALARM_DEVICE_PATH "\n");
printf("failed opening " TONEALARM0_DEVICE_PATH "\n");
goto out;
}