From 3194caa9d0b019154b10c3213882082709cc646b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 23 Feb 2012 11:31:46 -0500 Subject: [PATCH] Cleanup and added funny joke haha --- ctdlsh/src/ctdlsh.h | 8 ++++++++ ctdlsh/src/main.c | 7 +++++-- ctdlsh/src/passwd.c | 6 ++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ctdlsh/src/ctdlsh.h b/ctdlsh/src/ctdlsh.h index db607975a..77ca9e7e9 100644 --- a/ctdlsh/src/ctdlsh.h +++ b/ctdlsh/src/ctdlsh.h @@ -1,3 +1,11 @@ +/* + * main header file for ctdlsh + * + * Copyright (c) 2009-2012 by the citadel.org team + * This program is open source software, cheerfully made available to + * you under the terms of the GNU General Public License version 3. + */ + #include #include #include diff --git a/ctdlsh/src/main.c b/ctdlsh/src/main.c index 33ccbda4f..f996e68ec 100644 --- a/ctdlsh/src/main.c +++ b/ctdlsh/src/main.c @@ -1,5 +1,5 @@ /* - * (c) 2009-2011 by Art Cancro and citadel.org + * (c) 2009-2012 by Art Cancro and citadel.org * This program is released under the terms of the GNU General Public License v3. */ @@ -80,7 +80,6 @@ char **ctdlsh_completion(const char *text, int start, int end) { } - void do_main_loop(int server_socket) { char *cmd = NULL; char prompt[1024]; @@ -125,6 +124,10 @@ void do_main_loop(int server_socket) { } } + +/* + * If you don't know what main() does by now you probably shouldn't be reading this code. + */ int main(int argc, char **argv) { int server_socket = 0; diff --git a/ctdlsh/src/passwd.c b/ctdlsh/src/passwd.c index 51936f37a..2b914abb2 100644 --- a/ctdlsh/src/passwd.c +++ b/ctdlsh/src/passwd.c @@ -1,5 +1,5 @@ /* - * (c) 2009-2011 by Art Cancro and citadel.org + * (c) 2009-2012 by Art Cancro and citadel.org * This program is released under the terms of the GNU General Public License v3. */ @@ -27,7 +27,9 @@ int cmd_passwd(int server_socket, char *cmdbuf) { p2 = readline("Enter it again: "); if (strcmp(p1, p2)) { - fprintf(stderr, "Passwords do not match. Account password is unchanged.\n"); + fprintf(stderr, "The passwords you entered do not match." + "The account password remains unchanged.\n" + ); return(cmdret_error); } -- 2.30.2