From d1b65fa32a4359bb8b2a06835a432144151cc6da Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 18 Feb 2009 02:32:33 -0600 Subject: [PATCH] lowercase all command responses --- server.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server.c b/server.c index 5df5b2e..a5989fa 100644 --- a/server.c +++ b/server.c @@ -11,6 +11,7 @@ #include "cftp.h" #include "server.h" +#include "filesystem.h" /* * Special server debug wrapper. @@ -41,7 +42,7 @@ void server_command(char *msg) if(!strcmp(command, "ping")) { pong = time(NULL); - sprintf(msg, "Pong:%llud", (uintmax_t)pong); + sprintf(msg, "pong:%llud", (uintmax_t)pong); } } @@ -63,11 +64,11 @@ void handle_client(int skt, const char *clientip) } else if(errno) { - sprintf(buffer, "ERR:%s", strerror(errno)); + sprintf(buffer, "err:%s", strerror(errno)); } else { - sprintf(buffer, "ERR:Invalid Command"); + sprintf(buffer, "err:Invalid Command"); } /* send message to client */