aboutsummaryrefslogtreecommitdiff
path: root/pavolctld.c
diff options
context:
space:
mode:
Diffstat (limited to 'pavolctld.c')
-rw-r--r--pavolctld.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pavolctld.c b/pavolctld.c
index 2e6d13d..a4e108b 100644
--- a/pavolctld.c
+++ b/pavolctld.c
@@ -138,10 +138,8 @@ int main() {
// main loop
pa_threaded_mainloop_start(mainloop);
- while(1) {
- if (fgets(stdin_buffer, sizeof(stdin_buffer), stdin) != NULL)
- handle_command(context, stdin_buffer);
- }
+ while (fgets(stdin_buffer, sizeof(stdin_buffer), stdin) != NULL)
+ handle_command(context, stdin_buffer);
// clean up
pa_context_disconnect(context);