summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-28 14:32:29 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-28 14:32:29 (GMT)
commitb64c2239b0e2e92535f0f5f7c2cc7d1729c396bf (patch)
treeaf0ae8b0e9e5039de42c5186fec0c4dede63e5c6 /Modules
parent44774c942946d8cbd84207380b33cba366dd84d7 (diff)
downloadcpython-b64c2239b0e2e92535f0f5f7c2cc7d1729c396bf.zip
cpython-b64c2239b0e2e92535f0f5f7c2cc7d1729c396bf.tar.gz
cpython-b64c2239b0e2e92535f0f5f7c2cc7d1729c396bf.tar.bz2
Minor ANSIfication: lib_python no longer needs to be initialized
dynamically to support K&R C since we are requiring an ANSI compiler.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getpath.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 276e938..3fd0d8d 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -127,7 +127,7 @@ static char prefix[MAXPATHLEN+1];
static char exec_prefix[MAXPATHLEN+1];
static char progpath[MAXPATHLEN+1];
static char *module_search_path = NULL;
-static char lib_python[20]; /* Dynamically set to "lib/python" VERSION */
+static char lib_python[] = "lib/python" VERSION;
static void
reduce(char *dir)
@@ -408,9 +408,6 @@ calculate_path(void)
(even though NSNameOfModule() probably does the same thing.) */
#endif
- /* Initialize this dynamically for K&R C */
- sprintf(lib_python, "lib/python%.9s", VERSION);
-
/* If there is no slash in the argv0 path, then we have to
* assume python is on the user's $PATH, since there's no
* other way to find a directory to start the search from. If