summaryrefslogtreecommitdiff
path: root/command_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'command_queue.c')
-rw-r--r--command_queue.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/command_queue.c b/command_queue.c
index 0351f5c..8c697db 100644
--- a/command_queue.c
+++ b/command_queue.c
@@ -1,22 +1,22 @@
/*
- * door_daemon
+ * rhctl
*
- * Copyright (C) 2009 Christian Pointner <equinox@spreadspace.org>
+ * Copyright (C) 2009-2013 Christian Pointner <equinox@helsinki.at>
*
- * This file is part of door_daemon.
+ * This file is part of rhctl.
*
- * door_daemon is free software: you can redistribute it and/or modify
+ * rhctl is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
- * door_daemon is distributed in the hope that it will be useful,
+ * rhctl is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with door_daemon. If not, see <http://www.gnu.org/licenses/>.
+ * along with rhctl. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
@@ -27,7 +27,7 @@
cmd_t* cmd_get_last(cmd_t* first)
{
- if(!first)
+ if(!first)
return NULL;
while(first->next) {
@@ -66,7 +66,7 @@ int cmd_push(cmd_t** first, int fd, cmd_id_t cmd, const char* param)
*first = new_cmd;
return 0;
}
-
+
cmd_get_last(*first)->next = new_cmd;
return 0;
@@ -93,7 +93,7 @@ int cmd_has_expired(cmd_t cmd)
void cmd_pop(cmd_t** first)
{
- if(!first || !(*first))
+ if(!first || !(*first))
return;
cmd_t* deletee = *first;
@@ -105,7 +105,7 @@ void cmd_pop(cmd_t** first)
void cmd_clear(cmd_t** first)
{
- if(!first || !(*first))
+ if(!first || !(*first))
return;
while(*first) {