*: placate some compile warnings on OSX
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 1 Sep 2016 09:16:22 +0000 (11:16 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 1 Sep 2016 09:16:22 +0000 (11:16 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c
runit/runsvdir.c
shell/ash.c

index 800ff76a6273287be96c630965f35b3360360f9f..8e642cbbef770bc339e874c5995c6228a4761ff8 100644 (file)
@@ -1122,7 +1122,7 @@ static void download_one_url(const char *url)
                        /* fall through */
                case 201: /* 201 Created */
 /* "The request has been fulfilled and resulted in a new resource being created" */
-                       /* Standard wget is reported to treak this as success */
+                       /* Standard wget is reported to treat this as success */
                        /* fall through */
                case 202: /* 202 Accepted */
 /* "The request has been accepted for processing, but the processing has not been completed" */
index 2b7927542aeb37725b9af933ead0532451636a9f..84916e92972ff81c568895453a3b57f3e2df7ee4 100644 (file)
@@ -181,9 +181,9 @@ static NOINLINE int do_rescan(void)
                        continue;
                /* Do we have this service listed already? */
                for (i = 0; i < svnum; i++) {
-                       if ((sv[i].ino == s.st_ino)
+                       if (sv[i].ino == s.st_ino
 #if CHECK_DEVNO_TOO
-                        && (sv[i].dev == s.st_dev)
+                        && sv[i].dev == s.st_dev
 #endif
                        ) {
                                if (sv[i].pid == 0) /* restart if it has died */
index 496167fbe6593de3a0f72e5b19948ac2ee965865..789a81cc306df9667e74ed554320203a84a21306 100644 (file)
@@ -13004,10 +13004,10 @@ init(void)
 #endif
                p = lookupvar("PWD");
                if (p) {
-                       if (*p != '/' || stat(p, &st1) || stat(".", &st2)
+                       if (p[0] != '/' || stat(p, &st1) || stat(".", &st2)
                         || st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino
                        ) {
-                               p = '\0';
+                               p = NULL;
                        }
                }
                setpwd(p, 0);