top: remove GCCisms
[oweals/busybox.git] / init / init.c
index 35f64cf8a198a825018074e080fc4557c75d857d..6bee8f35ca5bf49c3c3879ddaa2b48a917ef3703 100644 (file)
@@ -862,7 +862,7 @@ int init_main(int argc UNUSED_PARAM, char **argv)
                struct sysinfo info;
 
                if (sysinfo(&info) == 0
-                && (info.mem_unit ? : 1) * (long long)info.totalram < 1024*1024
+                && (info.mem_unit ? info.mem_unit : 1) * (long long)info.totalram < 1024*1024
                ) {
                        message(L_CONSOLE, "Low memory, forcing swapon");
                        /* swapon -a requires /proc typically */