]> Nishi Git Mirror - dataworks.git/commitdiff
add pnsk-lab to copyright
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 14 Jun 2024 03:24:27 +0000 (03:24 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 14 Jun 2024 03:24:27 +0000 (03:24 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@299 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/dataworks.c
Makefiles/common.mk
RemoteClient/rcli.c
Server/server.c

index 904d6bc9729b1ee92a6a62f533f1b6dfbe7d58fa..8e4eb0a9a6801afc169f096fd703219e683c4a0e 100644 (file)
@@ -36,6 +36,7 @@
 const char* dataworks_version = "0.1.0";
 const char* dataworks_compile_date = __DATE__;
 const char* dataworks_copyright = "Copyright (c) Crabware 2024\n"
+                                 "              pnsk-lab 2024\n"
                                  "              Crabware is the software-development division of\n"
                                  "              Hinode Gakuen PC-Club. Contact: <nishi@nishi.boats>";
 
index 137d0f83d725c2be1efd222d9187970203f8c0b7..b19aba0b78d1f5b5d6762fee73a00781fcf05e38 100644 (file)
@@ -9,12 +9,12 @@ no-doc: ./Grammar ./Library ./Client $(SERVER) $(RCLI)
        @$(MAKE) thanks-banner
 
 thanks-banner:
-       @echo "************************************"
-       @echo "*                                  *"
-       @echo "*  Thanks for choosing DataWorks.  *"
-       @echo "*     - Nishi <nishi@nishi.boats>  *"
-       @echo "*                                  *"
-       @echo "************************************"
+       @echo "+-----------------------------------------+"
+       @echo "|                                         |"
+       @echo "|  Thanks for choosing DataWorks.         |"
+       @echo "|            - Nishi <nishi@nishi.boats>  |"
+       @echo "|                                         |"
+       @echo "+-----------------------------------------+"
 
 ./Grammar::
        $(MAKE) -C $@ $(COMPILE_FLAGS)
index ffe9091d4094b0f28a6820916cebe32ba9e21ce8..c17bbc6315a247d18f05d74cd14a4bea00f2ac76 100644 (file)
@@ -69,6 +69,9 @@ void discon(int sig) {
 
 int main(int _argc, char** _argv) {
        printf("DataWorks Remote Client  version %s  %s %s\n", dataworks_get_version(), dataworks_get_compile_date(), dataworks_get_platform());
+       printf("\n");
+       printf("%s\n", dataworks_get_copyright());
+       printf("\n");
        argc = _argc;
        argv = _argv;
        bool auth = false;
@@ -160,7 +163,7 @@ int main(int _argc, char** _argv) {
                                int ch = getchar();
 #endif
                                if(ch == EOF || ch == match) {
-                                       if(ch == EOF){
+                                       if(ch == EOF) {
                                                free(username);
                                                free(password);
                                                goto go_quit;
@@ -199,7 +202,7 @@ int main(int _argc, char** _argv) {
                                int ch = getchar();
 #endif
                                if(ch == EOF || ch == match) {
-                                       if(ch == EOF){
+                                       if(ch == EOF) {
                                                free(username);
                                                free(password);
                                                goto go_quit;
index efbbf25781758a8d8e51d5e702597f1f82d54591..ab621f7fa2e055f2a34ba9ef144832ba53f51dd5 100644 (file)
@@ -199,6 +199,7 @@ void protocol_loop(int sock) {
                                                                if(strcmp(entries[j]->pass, buf + i + 1) == 0) {
                                                                        writeline(sock, "LOGIN");
                                                                        login = true;
+                                                                       printf("User %s is in\n", user);
                                                                        break;
                                                                } else {
                                                                        writeline(sock, "ERROR:INVALID_PASSWORD");
@@ -251,6 +252,9 @@ int main(int _argc, char** _argv) {
        signal(SIGINT, exitnow);
        signal(SIGTERM, exitnow);
        printf("DataWorks Server  version %s  %s %s\n", dataworks_get_version(), dataworks_get_compile_date(), dataworks_get_platform());
+       printf("\n");
+       printf("%s\n", dataworks_get_copyright());
+       printf("\n");
        int st;
        if((st = server_init()) != 0) return st;
        if(auth) {