From 6aa87b34ea5135cfb8dd403f1bfca8fe10172fd1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 13 Dec 2004 13:58:56 +0000 Subject: The big whitespace cleanup for hcid --- hcid/lib.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'hcid/lib.c') diff --git a/hcid/lib.c b/hcid/lib.c index 7edc46a6..bbc78950 100644 --- a/hcid/lib.c +++ b/hcid/lib.c @@ -51,7 +51,7 @@ volatile sig_atomic_t __io_canceled; /* * Device name expansion - * %d - device id + * %d - device id */ char *expand_name(char *dst, int size, char *str, int dev_id) { @@ -76,7 +76,7 @@ char *expand_name(char *dst, int size, char *str, int dev_id) case 'h': opt = hcid.host_name; break; - + case '%': dst[np++] = str[sp++]; /* fall through */ @@ -115,14 +115,14 @@ char *get_host_name(void) if (!gethostname(name, sizeof(name)-1)) { name[sizeof(name)-1] = 0; return strdup(name); - } + } return strdup("noname"); } /* Functions to manipulate program title */ extern char **environ; char *title_start; /* start of the proc title space */ -char *title_end; /* end of the proc title space */ +char *title_end; /* end of the proc title space */ int title_size; void init_title(int argc, char *argv[], char *envp[], const char *name) @@ -152,11 +152,11 @@ void init_title(int argc, char *argv[], char *envp[], const char *name) * Determine how much space we can use for set_title. * Use all contiguous argv and envp pointers starting at argv[0] */ - for (i=0; i