Mesa (master): mesa: add const qualifier in check_for_ending() to silence warning

Brian Paul brianp at kemper.freedesktop.org
Sat Sep 29 14:24:53 UTC 2012


Module: Mesa
Branch: master
Commit: e77fc1279acadcdd3f5278811efdfaf1cd92bbb0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e77fc1279acadcdd3f5278811efdfaf1cd92bbb0

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Sep 29 08:24:44 2012 -0600

mesa: add const qualifier in check_for_ending() to silence warning

---

 src/mesa/main/version.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index a1fcec4..5778792 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -31,7 +31,7 @@
  * Scans 'string' to see if it ends with 'ending'.
  */
 static GLboolean
-check_for_ending(char *string, const char *ending)
+check_for_ending(const char *string, const char *ending)
 {
    int len1, len2;
 




More information about the mesa-commit mailing list