ll: move DIR to static for cc65
authorAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:10:53 +0000 (00:10 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:10:53 +0000 (00:10 +0000)
Applications/util/ll.c

index 5210151..90d5392 100644 (file)
@@ -33,7 +33,7 @@ int ls(char *path)
 {
     int st;
     struct dirent *d;
-    DIR dp;
+    static DIR dp;
     struct stat statbuf;
     static char dname[512];