summaryrefslogtreecommitdiff
path: root/saveutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'saveutil.c')
-rw-r--r--saveutil.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/saveutil.c b/saveutil.c
index 486e4cc..1b5132e 100644
--- a/saveutil.c
+++ b/saveutil.c
@@ -204,7 +204,7 @@ ReadSave(const char *session_name, char **sm_id)
if (state == 5)
{
- String strbuf;
+ char *strbuf;
int bufsize = 0;
getnextline(&buf, &buflen, f);
@@ -220,13 +220,12 @@ ReadSave(const char *session_name, char **sm_id)
{
getnextline(&buf, &buflen, f);
if((p = strchr(buf, '\n'))) *p = '\0';
- non_session_aware_clients[i] = (char *) malloc (
- strlen (buf) + 2);
+ non_session_aware_clients[i] = malloc (strlen (buf) + 2);
strcpy (non_session_aware_clients[i], buf);
bufsize += (strlen (buf) + 1);
}
- strbuf = (String) malloc (bufsize + 1);
+ strbuf = malloc (bufsize + 1);
strbuf[0] = '\0';
for (i = 0; i < non_session_aware_count; i++)
@@ -303,7 +302,7 @@ WriteSave(const char *sm_id)
ClientRec *client;
FILE *f;
List *cl;
- String commands;
+ char *commands;
char *p, *c;
int count;