summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 00:24:30 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 00:32:25 -0700
commite84f2e87222879ca667c1fb3d1cb3236a1159d12 (patch)
tree811a62b78ef6ba09d9781fc3dd1159cb079b55b4 /src/session.c
parentb16ce9773e4da5897ab546de85e48a3ea58d0e00 (diff)
Constification cleanup - fix dozens of gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/session.c b/src/session.c
index fd91942..5dce03f 100644
--- a/src/session.c
+++ b/src/session.c
@@ -72,9 +72,9 @@ Bool sent_save_done = 0;
#define SAVEFILE_VERSION 2
#ifndef HAVE_MKSTEMP
-static char *unique_filename ( char *path, char *prefix );
+static char *unique_filename ( const char *path, const char *prefix );
#else
-static char *unique_filename ( char *path, char *prefix, int *pFd );
+static char *unique_filename ( const char *path, const char *prefix, int *pFd );
#endif
@@ -719,15 +719,15 @@ Bool *height_ever_changed_by_user;
#ifndef HAVE_MKSTEMP
static char *
-unique_filename (path, prefix)
-char *path;
-char *prefix;
+unique_filename (
+ const char *path,
+ const char *prefix
#else
static char *
-unique_filename (path, prefix, pFd)
-char *path;
-char *prefix;
-int *pFd;
+unique_filename (
+ const char *path,
+ const char *prefix,
+ int *pFd)
#endif
{
@@ -778,7 +778,7 @@ SmPointer clientData;
TwmWindow *theWindow;
char *clientId, *windowRole;
FILE *configFile = NULL;
- char *path;
+ const char *path;
char *filename = NULL;
Bool success = False;
SmProp prop1, prop2, prop3, *props[3];