tone_alarm: more device paths replaced with #define

This commit is contained in:
Randy Mackay
2013-09-16 07:21:16 +02:00
committed by Lorenz Meier
parent 03727974f1
commit 1a641b791d
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -124,10 +124,10 @@ int test_tone(int argc, char *argv[])
int fd, result;
unsigned long tone;
fd = open("/dev/tone_alarm", O_WRONLY);
fd = open(TONEALARM_DEVICE_PATH, O_WRONLY);
if (fd < 0) {
printf("failed opening /dev/tone_alarm\n");
printf("failed opening " TONEALARM_DEVICE_PATH "\n");
goto out;
}