summaryrefslogtreecommitdiff
path: root/src/RdFToP.c
diff options
context:
space:
mode:
authorChristophe CURIS <christophe.curis@free.fr>2013-05-01 10:39:38 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-31 18:10:02 -0700
commite439f6e7163e3259f11f3363fa319e8a29085a92 (patch)
tree6e882d910e295d327c1a9824ee62c60ba78cd6dd /src/RdFToP.c
parent01ee6b9c500cd9c67f167e68c8383e8c58db5ddf (diff)
Added 'const' attribute to all filename arguments in the API
The filename is always a read-only argument, so it is a good idea to let the caller now about it. This patch does not change active code; the place where the attribute is added will not break source-level compatibility because it adds no restriction on caller side, just adds information; because the lib code behaved the same way it will not break the binary interface either. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/RdFToP.c')
-rw-r--r--src/RdFToP.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RdFToP.c b/src/RdFToP.c
index bacedda..f829757 100644
--- a/src/RdFToP.c
+++ b/src/RdFToP.c
@@ -41,7 +41,7 @@ int
XpmReadFileToPixmap(
Display *display,
Drawable d,
- char *filename,
+ const char *filename,
Pixmap *pixmap_return,
Pixmap *shapemask_return,
XpmAttributes *attributes)