diff options
| author | Stefan Monnier | 2002-10-31 16:22:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-10-31 16:22:07 +0000 |
| commit | 8d2ff84085aae9ad5701ebf13dc451e649d1d112 (patch) | |
| tree | 5dc956b1b396dd12e5e744f6f71da11d1a20b88d /src/process.c | |
| parent | 68eb8bd544008d1c7560e4eb8da83670e5ad2c31 (diff) | |
| download | emacs-8d2ff84085aae9ad5701ebf13dc451e649d1d112.tar.gz emacs-8d2ff84085aae9ad5701ebf13dc451e649d1d112.zip | |
(Fformat_network_address): Fix int/Lisp_Object mixup.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c index 5a271149319..2f2017dbeac 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1078,11 +1078,11 @@ Returns nil if format of ADDRESS is invalid. */) | |||
| 1078 | return Qnil; | 1078 | return Qnil; |
| 1079 | 1079 | ||
| 1080 | args[0] = build_string ("%d.%d.%d.%d:%d"); | 1080 | args[0] = build_string ("%d.%d.%d.%d:%d"); |
| 1081 | args[1] = XINT (p->contents[0]); | 1081 | args[1] = p->contents[0]; |
| 1082 | args[2] = XINT (p->contents[1]); | 1082 | args[2] = p->contents[1]; |
| 1083 | args[3] = XINT (p->contents[2]); | 1083 | args[3] = p->contents[2]; |
| 1084 | args[4] = XINT (p->contents[3]); | 1084 | args[4] = p->contents[3]; |
| 1085 | args[5] = XINT (p->contents[4]); | 1085 | args[5] = p->contents[4]; |
| 1086 | return Fformat (6, args); | 1086 | return Fformat (6, args); |
| 1087 | } | 1087 | } |
| 1088 | 1088 | ||
| @@ -1090,7 +1090,7 @@ Returns nil if format of ADDRESS is invalid. */) | |||
| 1090 | { | 1090 | { |
| 1091 | Lisp_Object args[2]; | 1091 | Lisp_Object args[2]; |
| 1092 | args[0] = build_string ("<Family %d>"); | 1092 | args[0] = build_string ("<Family %d>"); |
| 1093 | args[1] = XINT (Fcar (address)); | 1093 | args[1] = Fcar (address); |
| 1094 | return Fformat (2, args); | 1094 | return Fformat (2, args); |
| 1095 | 1095 | ||
| 1096 | } | 1096 | } |