Mercurial > emacs
comparison src/xterm.c @ 46479:4729f849c572
(same_x_server): String pointer args now point to
const.
(same_x_server): Use const for pointer to lisp string
data.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Tue, 16 Jul 2002 19:49:27 +0000 |
parents | 278371336b60 |
children | cbb6b64328d4 |
comparison
equal
deleted
inserted
replaced
46478:d6b51ec01987 | 46479:4729f849c572 |
---|---|
14684 #ifdef MULTI_KBOARD | 14684 #ifdef MULTI_KBOARD |
14685 /* Test whether two display-name strings agree up to the dot that separates | 14685 /* Test whether two display-name strings agree up to the dot that separates |
14686 the screen number from the server number. */ | 14686 the screen number from the server number. */ |
14687 static int | 14687 static int |
14688 same_x_server (name1, name2) | 14688 same_x_server (name1, name2) |
14689 char *name1, *name2; | 14689 const char *name1, *name2; |
14690 { | 14690 { |
14691 int seen_colon = 0; | 14691 int seen_colon = 0; |
14692 unsigned char *system_name = SDATA (Vsystem_name); | 14692 const unsigned char *system_name = SDATA (Vsystem_name); |
14693 int system_name_length = strlen (system_name); | 14693 int system_name_length = strlen (system_name); |
14694 int length_until_period = 0; | 14694 int length_until_period = 0; |
14695 | 14695 |
14696 while (system_name[length_until_period] != 0 | 14696 while (system_name[length_until_period] != 0 |
14697 && system_name[length_until_period] != '.') | 14697 && system_name[length_until_period] != '.') |