From e439f6e7163e3259f11f3363fa319e8a29085a92 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Wed, 1 May 2013 10:39:38 +0200 Subject: 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 Signed-off-by: Alan Coopersmith --- src/RdFToP.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/RdFToP.c') 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) -- cgit v1.2.3