diff options
author | Daniel Mack <github@zonque.org> | 2015-10-01 22:58:02 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-10-01 22:58:02 +0200 |
commit | 3c2f5a543de9cc3d958920b3bd18dc8657dc201f (patch) | |
tree | dc69a329bd915b6fedd7079cc35808abcd3a2723 /src/basic/terminal-util.c | |
parent | 5a6d44ed77f46c18aa2315e645de7302b88c34c8 (diff) | |
parent | 2c6c4ab2f5523940df64af205315612d89b818f0 (diff) |
Merge pull request #1439 from poettering/CODING_STYLE
Coding style
Diffstat (limited to 'src/basic/terminal-util.c')
-rw-r--r-- | src/basic/terminal-util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 287e0dfa13..22ee6ad83f 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -607,27 +607,6 @@ int vt_disallocate(const char *name) { return 0; } -void warn_melody(void) { - _cleanup_close_ int fd = -1; - - fd = open("/dev/console", O_WRONLY|O_CLOEXEC|O_NOCTTY); - if (fd < 0) - return; - - /* Yeah, this is synchronous. Kinda sucks. But well... */ - - (void) ioctl(fd, KIOCSOUND, (int)(1193180/440)); - usleep(125*USEC_PER_MSEC); - - (void) ioctl(fd, KIOCSOUND, (int)(1193180/220)); - usleep(125*USEC_PER_MSEC); - - (void) ioctl(fd, KIOCSOUND, (int)(1193180/220)); - usleep(125*USEC_PER_MSEC); - - (void) ioctl(fd, KIOCSOUND, 0); -} - int make_console_stdio(void) { int fd, r; |