projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stub out the color support in the Python version.
[super-star-trek.git]
/
src
/
sstlinux.c
diff --git
a/src/sstlinux.c
b/src/sstlinux.c
index 3c2ebbeb78fd5f48cb1d5d63933c481d8e8fc13b..422c30593a1e5df6e88e4bfbccd0b2b2f0252933 100644
(file)
--- a/
src/sstlinux.c
+++ b/
src/sstlinux.c
@@
-14,14
+14,17
@@
static int fd = 0;
void sound(unsigned int freq)
{
#ifdef HAVE_LINUX_KD_H
void sound(unsigned int freq)
{
#ifdef HAVE_LINUX_KD_H
- if(fd==0) fd=open("/dev/console", O_RDONLY);
- if(fd>0) ioctl(fd, KDMKTONE, 1193180/freq + (0xFFFF<<16));
+ if (fd==0)
+ fd=open("/dev/console", O_RDONLY);
+ if (fd>0)
+ ioctl(fd, KDMKTONE, 1193180/freq + (0xFFFF<<16));
#endif
}
void nosound(void)
{
#ifdef HAVE_LINUX_KD_H
#endif
}
void nosound(void)
{
#ifdef HAVE_LINUX_KD_H
- if(fd>0) ioctl(fd, KDMKTONE, 0);
+ if(fd>0)
+ ioctl(fd, KDMKTONE, 0);
#endif
}
#endif
}