diff options
| author | Paul Eggert | 2011-01-30 14:22:58 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-30 14:22:58 -0800 |
| commit | 4eec7f8b2b465c6fc2c09d37d4da2b540f607df0 (patch) | |
| tree | 9f4e30300e4f96dd3c72f5f435032f8180ce1a6c /src/process.c | |
| parent | fcabb1a6e66f7e6cf4fe0984c4d5c169f4decd8a (diff) | |
| parent | 42a5b22fc0201fe98ad8a093c3ab91122ab3a72b (diff) | |
| download | emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.tar.gz emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.zip | |
Use SSDATA when the context wants char *.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/process.c b/src/process.c index 22446fb7004..ca29145bfd4 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -498,7 +498,7 @@ status_message (struct Lisp_Process *p) | |||
| 498 | if (! NILP (Vlocale_coding_system)) | 498 | if (! NILP (Vlocale_coding_system)) |
| 499 | string = (code_convert_string_norecord | 499 | string = (code_convert_string_norecord |
| 500 | (string, Vlocale_coding_system, 0)); | 500 | (string, Vlocale_coding_system, 0)); |
| 501 | c1 = STRING_CHAR (SSDATA (string)); | 501 | c1 = STRING_CHAR (SDATA (string)); |
| 502 | c2 = DOWNCASE (c1); | 502 | c2 = DOWNCASE (c1); |
| 503 | if (c1 != c2) | 503 | if (c1 != c2) |
| 504 | Faset (string, make_number (0), make_number (c2)); | 504 | Faset (string, make_number (0), make_number (c2)); |
| @@ -1447,7 +1447,7 @@ list_processes_1 (Lisp_Object query_only) | |||
| 1447 | Lisp_Object speed = Fplist_get (p->childp, QCspeed); | 1447 | Lisp_Object speed = Fplist_get (p->childp, QCspeed); |
| 1448 | insert_string ("(serial port "); | 1448 | insert_string ("(serial port "); |
| 1449 | if (STRINGP (port)) | 1449 | if (STRINGP (port)) |
| 1450 | insert_string (SDATA (port)); | 1450 | insert_string (SSDATA (port)); |
| 1451 | else | 1451 | else |
| 1452 | insert_string ("?"); | 1452 | insert_string ("?"); |
| 1453 | if (INTEGERP (speed)) | 1453 | if (INTEGERP (speed)) |
| @@ -3262,7 +3262,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3262 | CHECK_STRING (service); | 3262 | CHECK_STRING (service); |
| 3263 | memset (&address_un, 0, sizeof address_un); | 3263 | memset (&address_un, 0, sizeof address_un); |
| 3264 | address_un.sun_family = AF_LOCAL; | 3264 | address_un.sun_family = AF_LOCAL; |
| 3265 | strncpy (address_un.sun_path, SDATA (service), sizeof address_un.sun_path); | 3265 | strncpy (address_un.sun_path, SSDATA (service), sizeof address_un.sun_path); |
| 3266 | ai.ai_addr = (struct sockaddr *) &address_un; | 3266 | ai.ai_addr = (struct sockaddr *) &address_un; |
| 3267 | ai.ai_addrlen = sizeof address_un; | 3267 | ai.ai_addrlen = sizeof address_un; |
| 3268 | goto open_socket; | 3268 | goto open_socket; |
| @@ -3298,7 +3298,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3298 | else | 3298 | else |
| 3299 | { | 3299 | { |
| 3300 | CHECK_STRING (service); | 3300 | CHECK_STRING (service); |
| 3301 | portstring = SDATA (service); | 3301 | portstring = SSDATA (service); |
| 3302 | } | 3302 | } |
| 3303 | 3303 | ||
| 3304 | immediate_quit = 1; | 3304 | immediate_quit = 1; |
| @@ -3313,12 +3313,12 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3313 | res_init (); | 3313 | res_init (); |
| 3314 | #endif | 3314 | #endif |
| 3315 | 3315 | ||
| 3316 | ret = getaddrinfo (SDATA (host), portstring, &hints, &res); | 3316 | ret = getaddrinfo (SSDATA (host), portstring, &hints, &res); |
| 3317 | if (ret) | 3317 | if (ret) |
| 3318 | #ifdef HAVE_GAI_STRERROR | 3318 | #ifdef HAVE_GAI_STRERROR |
| 3319 | error ("%s/%s %s", SDATA (host), portstring, gai_strerror (ret)); | 3319 | error ("%s/%s %s", SSDATA (host), portstring, gai_strerror (ret)); |
| 3320 | #else | 3320 | #else |
| 3321 | error ("%s/%s getaddrinfo error %d", SDATA (host), portstring, ret); | 3321 | error ("%s/%s getaddrinfo error %d", SSDATA (host), portstring, ret); |
| 3322 | #endif | 3322 | #endif |
| 3323 | immediate_quit = 0; | 3323 | immediate_quit = 0; |
| 3324 | 3324 | ||
| @@ -3337,7 +3337,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3337 | { | 3337 | { |
| 3338 | struct servent *svc_info; | 3338 | struct servent *svc_info; |
| 3339 | CHECK_STRING (service); | 3339 | CHECK_STRING (service); |
| 3340 | svc_info = getservbyname (SDATA (service), | 3340 | svc_info = getservbyname (SSDATA (service), |
| 3341 | (socktype == SOCK_DGRAM ? "udp" : "tcp")); | 3341 | (socktype == SOCK_DGRAM ? "udp" : "tcp")); |
| 3342 | if (svc_info == 0) | 3342 | if (svc_info == 0) |
| 3343 | error ("Unknown service: %s", SDATA (service)); | 3343 | error ("Unknown service: %s", SDATA (service)); |
| @@ -5807,7 +5807,7 @@ emacs_get_tty_pgrp (struct Lisp_Process *p) | |||
| 5807 | int fd; | 5807 | int fd; |
| 5808 | /* Some OS:es (Solaris 8/9) does not allow TIOCGPGRP from the | 5808 | /* Some OS:es (Solaris 8/9) does not allow TIOCGPGRP from the |
| 5809 | master side. Try the slave side. */ | 5809 | master side. Try the slave side. */ |
| 5810 | fd = emacs_open (SDATA (p->tty_name), O_RDONLY, 0); | 5810 | fd = emacs_open (SSDATA (p->tty_name), O_RDONLY, 0); |
| 5811 | 5811 | ||
| 5812 | if (fd != -1) | 5812 | if (fd != -1) |
| 5813 | { | 5813 | { |