Prechádzať zdrojové kódy

vcc: typo and warnings

intirain 4 rokov pred
rodič
commit
ecb7d8dd2c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCC_MAJOR 		= 1
 VCC_MINOR 		= 37
-VCC_PATCH 		= 2
+VCC_PATCH 		= 3
 VCC_STR 		= -rc
 
 # change this to '/usr/share/' or '/opt/vcc/' etc

+ 1 - 1
include/vcc/config.h

@@ -1 +1 @@
-#define INSTALL_PATH "/home/ubuntu/vcc"
+#define INSTALL_PATH "/root/vcc"

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCC_VERSION "vcc 1.37.2 Tue Jul  5 09:23:13 PM CST 2022 root"
-#define VCC_SEMVER "vcc 1.37.2-rc"
+#define VCC_VERSION "vcc 1.37.3 Wed Jul  6 07:05:35 AM CST 2022 root"
+#define VCC_SEMVER "vcc 1.37.3-rc"

+ 1 - 1
libs/readconf/Makefile

@@ -1,5 +1,5 @@
 OBJS = readconf.o do_op_set.o klist.o 
-CFLAGS = -g -Wall -Iinclude/ -fpic -c 
+CFLAGS = -g -Wall -Wextra -Werror -Iinclude/ -fpic -c 
 
 
 all: ../readconf.a 

+ 1 - 1
libs/readconf/include/readconf/port.h

@@ -59,7 +59,7 @@ extern int conf_fd;
 #define readconf_putbyte(b) 	write(conf_fd, &b, 1)
 
 #define readconf_malloc(s) 	malloc(s)
-#define readconf_free(s) 	free(s)
+#define readconf_free(s) 	free(s), s = NULL
 
 
 #endif

+ 2 - 0
libs/readconf/klist.c

@@ -57,6 +57,8 @@ void rc_klist_add(struct rc_klist_node *head, struct rc_klist_node *new) {
 
 
 void rc_klist_del(struct rc_klist_node *head, struct rc_klist_node *will_del) {
+	(void) head;
+
 	will_del->prev->next = will_del->next;
 	will_del->next->prev = will_del->prev;
 

+ 1 - 1
vcc.c

@@ -319,7 +319,7 @@ int vcc_login_bh(struct vcc_request *req) {
 		printf(_("ready. \n"));
 
 	else {
-		fprintf(stderr, _("login failed: wrong password or user doesn't exists. \n"));
+		fprintf(stderr, _("login failed: wrong password or user doesn't exist. \n"));
 		fprintf(stderr, _("if you haven't got an account on this server, ask the administrator " 
 				"and you can get one. \n"));