diff options
| author | Lars Ingebrigtsen | 2019-09-17 14:11:53 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-17 14:11:53 +0200 |
| commit | 4b73a937e08334a8304f876b598b662d6a0aaef5 (patch) | |
| tree | 708222ae887e9a1eff086986e903dda66f064033 | |
| parent | 0e5e816a09cddb0577e5d7c6187b872876b2f759 (diff) | |
| download | emacs-4b73a937e08334a8304f876b598b662d6a0aaef5.tar.gz emacs-4b73a937e08334a8304f876b598b662d6a0aaef5.zip | |
Touch up naming of ipv6-expand
* lisp/net/net-utils.el (nslookup--ipv6-expand): Rename to avoid
make prefix more regular.
(nslookup-host-ipv6): Rename call.
| -rw-r--r-- | lisp/net/net-utils.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el index 4f68e5db61d..03ed4a59575 100644 --- a/lisp/net/net-utils.el +++ b/lisp/net/net-utils.el | |||
| @@ -563,7 +563,7 @@ This command uses `nslookup-program' to look up DNS records." | |||
| 563 | (apply #'vector (mapcar #'string-to-number (split-string ip "\\.")))) | 563 | (apply #'vector (mapcar #'string-to-number (split-string ip "\\.")))) |
| 564 | (t (error "Invalid format: %s" format))))) | 564 | (t (error "Invalid format: %s" format))))) |
| 565 | 565 | ||
| 566 | (defun ipv6-expand (ipv6-vector) | 566 | (defun nslookup--ipv6-expand (ipv6-vector) |
| 567 | (let ((len (length ipv6-vector))) | 567 | (let ((len (length ipv6-vector))) |
| 568 | (if (< len 8) | 568 | (if (< len 8) |
| 569 | (let* ((pivot (cl-position 0 ipv6-vector)) | 569 | (let* ((pivot (cl-position 0 ipv6-vector)) |
| @@ -598,9 +598,10 @@ This command uses `nslookup-program' to look up DNS records." | |||
| 598 | (cond ((memq format '(string nil)) | 598 | (cond ((memq format '(string nil)) |
| 599 | ip) | 599 | ip) |
| 600 | ((eq format 'vector) | 600 | ((eq format 'vector) |
| 601 | (ipv6-expand (apply #'vector | 601 | (nslookup--ipv6-expand |
| 602 | (cl-loop for hextet in (split-string ip "[:]") | 602 | (apply #'vector |
| 603 | collect (string-to-number hextet 16))))) | 603 | (cl-loop for hextet in (split-string ip "[:]") |
| 604 | collect (string-to-number hextet 16))))) | ||
| 604 | (t (error "Invalid format: %s" format))))) | 605 | (t (error "Invalid format: %s" format))))) |
| 605 | 606 | ||
| 606 | ;;;###autoload | 607 | ;;;###autoload |