projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d544d
)
egl_dri2: Just cast the pointer difference to an int
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 5 Feb 2010 14:58:27 +0000
(09:58 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 5 Feb 2010 17:01:27 +0000
(12:01 -0500)
src/egl/drivers/dri2/egl_dri2.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index d53f1375305a351dbeaef63b6ed19b27f7f81ee0..7925369cd44fec0e6a4baef00a736c7b4abdd3d6 100644
(file)
--- 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));