Replaced -W with -Wextra in Makefile. Minor lint-related improvement to usmb_di… | |
git clone git://git.codemadness.org/susmb | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 9d41efbfc16675daa5c9c9c674bff98918129fdf | |
parent 266537b6365692fee81af96035202a012f72a376 | |
Author: geoff <devnull@localhost> | |
Date: Thu, 18 Oct 2007 08:39:48 +0000 | |
Replaced -W with -Wextra in Makefile. | |
Minor lint-related improvement to usmb_dir.c. | |
Diffstat: | |
M Makefile | 2 +- | |
M usmb_dir.c | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -23,7 +23,7 @@ INSTALL = install | |
PREFIX = /usr/local | |
BINDIR = $(PREFIX)/bin | |
-CFLAGS += -Wall -W -Werror -std=c99 -pedantic -O \ | |
+CFLAGS += -Wall -Wextra -Werror -std=c99 -pedantic -O \ | |
-I$(SAMBA)/include -D_BSD_SOURCE -DFUSE_USE_VERSION=26 \ | |
-DHAVE_UTIME_H | |
diff --git a/usmb_dir.c b/usmb_dir.c | |
@@ -67,7 +67,7 @@ int usmb_opendir (const char *dirname, struct fuse_file_info … | |
SMBCFILE *file = ctx->opendir (ctx, url); | |
DEBUG (fprintf (stderr, " = %p\n", (void *)file)); | |
- int ret = (file == NULL) ? -errno : 0; | |
+ int ret = (NULL == file) ? -errno : 0; | |
free (url); | |
fi->fh = smbcfile_to_fd (file); | |