diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-01-06 02:45:17 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-01-06 02:45:17 (GMT) |
commit | a9652f11ade5566c2429fb16902fe1cc3f2f1f70 (patch) | |
tree | 85f507f2c82c4f178ba91b904000d701cd943fe1 /Modules/getbuildinfo.c | |
parent | e86e7a5b62250ab3a17c020bdeb0213a971f2585 (diff) | |
download | cpython-a9652f11ade5566c2429fb16902fe1cc3f2f1f70.zip cpython-a9652f11ade5566c2429fb16902fe1cc3f2f1f70.tar.gz cpython-a9652f11ade5566c2429fb16902fe1cc3f2f1f70.tar.bz2 |
Py_GetBuildInfo(): Squash compiler warnings.
Locals `revision` and `branch` were const-incorrect.
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r-- | Modules/getbuildinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c index 8e00e4f..7b47aea 100644 --- a/Modules/getbuildinfo.c +++ b/Modules/getbuildinfo.c @@ -24,9 +24,9 @@ const char * Py_GetBuildInfo(void) { static char buildinfo[50]; - char *revision = Py_SubversionRevision(); - char *sep = *revision ? ":" : ""; - char *branch = Py_SubversionShortBranch(); + const char *revision = Py_SubversionRevision(); + const char *sep = *revision ? ":" : ""; + const char *branch = Py_SubversionShortBranch(); PyOS_snprintf(buildinfo, sizeof(buildinfo), "%s%s%s, %.20s, %.9s", branch, sep, revision, DATE, TIME); |