aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-09-01 11:16:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-09-01 11:16:22 +0200
commitef15970d7ec904eb33ab572abc5de1f51b7e1cfa (patch)
treeaa790e1e462f4aebba74dd18c96625f4395148de
parent76d72376e0244a5cafd4880cdc623e37d86a75e4 (diff)
downloadbusybox-w32-ef15970d7ec904eb33ab572abc5de1f51b7e1cfa.tar.gz
busybox-w32-ef15970d7ec904eb33ab572abc5de1f51b7e1cfa.tar.bz2
busybox-w32-ef15970d7ec904eb33ab572abc5de1f51b7e1cfa.zip
*: placate some compile warnings on OSX
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/wget.c2
-rw-r--r--runit/runsvdir.c4
-rw-r--r--shell/ash.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 800ff76a6..8e642cbbe 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -1122,7 +1122,7 @@ static void download_one_url(const char *url)
1122 /* fall through */ 1122 /* fall through */
1123 case 201: /* 201 Created */ 1123 case 201: /* 201 Created */
1124/* "The request has been fulfilled and resulted in a new resource being created" */ 1124/* "The request has been fulfilled and resulted in a new resource being created" */
1125 /* Standard wget is reported to treak this as success */ 1125 /* Standard wget is reported to treat this as success */
1126 /* fall through */ 1126 /* fall through */
1127 case 202: /* 202 Accepted */ 1127 case 202: /* 202 Accepted */
1128/* "The request has been accepted for processing, but the processing has not been completed" */ 1128/* "The request has been accepted for processing, but the processing has not been completed" */
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 2b7927542..84916e929 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -181,9 +181,9 @@ static NOINLINE int do_rescan(void)
181 continue; 181 continue;
182 /* Do we have this service listed already? */ 182 /* Do we have this service listed already? */
183 for (i = 0; i < svnum; i++) { 183 for (i = 0; i < svnum; i++) {
184 if ((sv[i].ino == s.st_ino) 184 if (sv[i].ino == s.st_ino
185#if CHECK_DEVNO_TOO 185#if CHECK_DEVNO_TOO
186 && (sv[i].dev == s.st_dev) 186 && sv[i].dev == s.st_dev
187#endif 187#endif
188 ) { 188 ) {
189 if (sv[i].pid == 0) /* restart if it has died */ 189 if (sv[i].pid == 0) /* restart if it has died */
diff --git a/shell/ash.c b/shell/ash.c
index 496167fbe..789a81cc3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13004,10 +13004,10 @@ init(void)
13004#endif 13004#endif
13005 p = lookupvar("PWD"); 13005 p = lookupvar("PWD");
13006 if (p) { 13006 if (p) {
13007 if (*p != '/' || stat(p, &st1) || stat(".", &st2) 13007 if (p[0] != '/' || stat(p, &st1) || stat(".", &st2)
13008 || st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino 13008 || st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino
13009 ) { 13009 ) {
13010 p = '\0'; 13010 p = NULL;
13011 } 13011 }
13012 } 13012 }
13013 setpwd(p, 0); 13013 setpwd(p, 0);