mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 10:12:24 +00:00
const fallout.
[originally from svn r2597]
This commit is contained in:
parent
0edb75b696
commit
34b400a131
@ -1,4 +1,4 @@
|
|||||||
/* $Id: mac.c,v 1.27 2003/01/12 16:11:27 ben Exp $ */
|
/* $Id: mac.c,v 1.28 2003/01/14 19:09:24 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Ben Harris
|
* Copyright (c) 1999 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -702,7 +702,7 @@ void old_keyfile_warning(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char *platform_default_s(char *name)
|
char *platform_default_s(char const *name)
|
||||||
{
|
{
|
||||||
long smfs;
|
long smfs;
|
||||||
Str255 pname;
|
Str255 pname;
|
||||||
@ -724,7 +724,7 @@ char *platform_default_s(char *name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int platform_default_i(char *name, int def)
|
int platform_default_i(char const *name, int def)
|
||||||
{
|
{
|
||||||
long smfs;
|
long smfs;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macstore.c,v 1.7 2003/01/08 22:46:12 ben Exp $ */
|
/* $Id: macstore.c,v 1.8 2003/01/14 19:09:24 ben Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* macstore.c: Macintosh-specific impementation of the interface
|
* macstore.c: Macintosh-specific impementation of the interface
|
||||||
@ -101,7 +101,7 @@ struct write_settings {
|
|||||||
FSSpec dstfile;
|
FSSpec dstfile;
|
||||||
};
|
};
|
||||||
|
|
||||||
void *open_settings_w(char *sessionname) {
|
void *open_settings_w(char const *sessionname) {
|
||||||
short sessVRefNum, tmpVRefNum;
|
short sessVRefNum, tmpVRefNum;
|
||||||
long sessDirID, tmpDirID;
|
long sessDirID, tmpDirID;
|
||||||
OSErr error;
|
OSErr error;
|
||||||
@ -144,7 +144,7 @@ void *open_settings_w(char *sessionname) {
|
|||||||
fatalbox("Failed to open session for write (%d)", error);
|
fatalbox("Failed to open session for write (%d)", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_setting_s(void *handle, char *key, char *value) {
|
void write_setting_s(void *handle, char const *key, char const *value) {
|
||||||
int fd = *(int *)handle;
|
int fd = *(int *)handle;
|
||||||
Handle h;
|
Handle h;
|
||||||
int id;
|
int id;
|
||||||
@ -166,7 +166,7 @@ void write_setting_s(void *handle, char *key, char *value) {
|
|||||||
fatalbox("Failed to add resource %s (%d)", key, ResError());
|
fatalbox("Failed to add resource %s (%d)", key, ResError());
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_setting_i(void *handle, char *key, int value) {
|
void write_setting_i(void *handle, char const *key, int value) {
|
||||||
int fd = *(int *)handle;
|
int fd = *(int *)handle;
|
||||||
Handle h;
|
Handle h;
|
||||||
int id;
|
int id;
|
||||||
@ -208,7 +208,7 @@ void close_settings_w(void *handle) {
|
|||||||
safefree(handle);
|
safefree(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *open_settings_r(char *sessionname)
|
void *open_settings_r(char const *sessionname)
|
||||||
{
|
{
|
||||||
short sessVRefNum;
|
short sessVRefNum;
|
||||||
long sessDirID;
|
long sessDirID;
|
||||||
@ -244,7 +244,7 @@ void *open_settings_r_fsp(FSSpec *sessfile)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *read_setting_s(void *handle, char *key, char *buffer, int buflen) {
|
char *read_setting_s(void *handle, char const *key, char *buffer, int buflen) {
|
||||||
int fd;
|
int fd;
|
||||||
Handle h;
|
Handle h;
|
||||||
size_t len;
|
size_t len;
|
||||||
@ -269,7 +269,7 @@ char *read_setting_s(void *handle, char *key, char *buffer, int buflen) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int read_setting_i(void *handle, char *key, int defvalue) {
|
int read_setting_i(void *handle, char const *key, int defvalue) {
|
||||||
int fd;
|
int fd;
|
||||||
Handle h;
|
Handle h;
|
||||||
int value;
|
int value;
|
||||||
@ -300,7 +300,7 @@ void close_settings_r(void *handle) {
|
|||||||
safefree(handle);
|
safefree(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void del_settings(char *sessionname) {
|
void del_settings(char const *sessionname) {
|
||||||
OSErr error;
|
OSErr error;
|
||||||
FSSpec sessfile;
|
FSSpec sessfile;
|
||||||
short sessVRefNum;
|
short sessVRefNum;
|
||||||
|
Loading…
Reference in New Issue
Block a user