projects
/
chise
/
xemacs-chise.git.1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create branch 'XEmacs-21_4'.
[chise/xemacs-chise.git.1]
/
lib-src
/
gnuclient.c
diff --git
a/lib-src/gnuclient.c
b/lib-src/gnuclient.c
index
1902691
..
b2f5c19
100644
(file)
--- a/
lib-src/gnuclient.c
+++ b/
lib-src/gnuclient.c
@@
-231,13
+231,13
@@
filename_expand (char *fullpath, char *filename)
/* Encase the string in quotes, escape all the backslashes and quotes
in string. */
static char *
/* Encase the string in quotes, escape all the backslashes and quotes
in string. */
static char *
-clean_string (CONST char *s)
+clean_string (const char *s)
{
int i = 0;
char *p, *res;
{
{
int i = 0;
char *p, *res;
{
- CONST char *const_p;
+ const char *const_p;
for (const_p = s; *const_p; const_p++, i++)
{
if (*const_p == '\\' || *const_p == '\"')
for (const_p = s; *const_p; const_p++, i++)
{
if (*const_p == '\\' || *const_p == '\"')
@@
-291,14
+291,14
@@
clean_string (CONST char *s)
over = 1; \
} while (0)
over = 1; \
} while (0)
-/* A strdup immitation. */
+/* A strdup imitation. */
static char *
static char *
-my_strdup (CONST char *s)
+my_strdup (const char *s)
{
{
- char *new = malloc (strlen (s) + 1);
- if (new)
- strcpy (new, s);
- return new;
+ char *new_s = (char *) malloc (strlen (s) + 1);
+ if (new_s)
+ strcpy (new_s, s);
+ return new_s;
}
int
}
int
@@
-660,7
+660,7
@@
main (int argc, char *argv[])
}
filename_expand (fullpath, argv[i]);
#ifdef INTERNET_DOMAIN_SOCKETS
}
filename_expand (fullpath, argv[i]);
#ifdef INTERNET_DOMAIN_SOCKETS
- path = malloc (strlen (remotepath) + strlen (fullpath) + 1);
+ path = (char *) malloc (strlen (remotepath) + strlen (fullpath) + 1);
sprintf (path, "%s%s", remotepath, fullpath);
#else
path = my_strdup (fullpath);
sprintf (path, "%s%s", remotepath, fullpath);
#else
path = my_strdup (fullpath);