diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-02-05 09:58:27 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-02-05 12:01:27 -0500 |
commit | f27b4fadca814f21a0c0b3335d8862640aeb2344 (patch) | |
tree | c322aed98a8414de814ec91350b28d9de78722d2 /src | |
parent | f1d544d6a62fe950ddc113473cba83619caaec6b (diff) |
egl_dri2: Just cast the pointer difference to an int
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index d53f137530..7925369cd4 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -469,16 +469,13 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp, dri2_dpy->driver = NULL; end = search_paths + strlen(search_paths); for (p = search_paths; p < end && dri2_dpy->driver == NULL; p = next + 1) { - int path_len; - next = strchr(p, ':'); if (next == NULL) next = end; - path_len = next - p; snprintf(path, sizeof path, dri_driver_format, - path_len, p, + (int) (next - p), p, xcb_dri2_connect_driver_name_length (connect), xcb_dri2_connect_driver_name (connect)); |