diff options
| author | Lars Ingebrigtsen | 2019-06-13 01:53:52 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-13 01:53:58 +0200 |
| commit | c717a5bf53a9f08f2123968b62800a8450589719 (patch) | |
| tree | 74b499b1c4d6281fa0e8b622810370f5b6c63e83 | |
| parent | 73ab8f4b8cb6f08e7b694bdadcd42751b3916dae (diff) | |
| download | emacs-c717a5bf53a9f08f2123968b62800a8450589719.tar.gz emacs-c717a5bf53a9f08f2123968b62800a8450589719.zip | |
Fix compilation warnings in rfc2104
* lisp/net/rfc2104.el (rfc2104-hash): Remove superflous calls to
string-make-unibyte and avoid two compilation warnings.
| -rw-r--r-- | lisp/net/rfc2104.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/net/rfc2104.el b/lisp/net/rfc2104.el index 9d4957ddb5d..5de8401d5b6 100644 --- a/lisp/net/rfc2104.el +++ b/lisp/net/rfc2104.el | |||
| @@ -99,8 +99,7 @@ | |||
| 99 | (aset ipad i (logxor rfc2104-ipad c)) | 99 | (aset ipad i (logxor rfc2104-ipad c)) |
| 100 | (aset opad i (logxor rfc2104-opad c))) | 100 | (aset opad i (logxor rfc2104-opad c))) |
| 101 | ;; Perform inner hash. | 101 | ;; Perform inner hash. |
| 102 | (setq partial (string-make-unibyte | 102 | (setq partial (funcall hash (concat ipad text))) |
| 103 | (funcall hash (concat ipad text)))) | ||
| 104 | ;; Pack latter part of opad. | 103 | ;; Pack latter part of opad. |
| 105 | (cl-do ((r 0 (+ 2 r)) | 104 | (cl-do ((r 0 (+ 2 r)) |
| 106 | (w block-length (1+ w))) | 105 | (w block-length (1+ w))) |
| @@ -109,7 +108,7 @@ | |||
| 109 | (+ (* 16 (aref rfc2104-nybbles (aref partial r))) | 108 | (+ (* 16 (aref rfc2104-nybbles (aref partial r))) |
| 110 | ( aref rfc2104-nybbles (aref partial (1+ r)))))) | 109 | ( aref rfc2104-nybbles (aref partial (1+ r)))))) |
| 111 | ;; Perform outer hash. | 110 | ;; Perform outer hash. |
| 112 | (string-make-unibyte (funcall hash opad)))) | 111 | (funcall hash opad))) |
| 113 | 112 | ||
| 114 | (provide 'rfc2104) | 113 | (provide 'rfc2104) |
| 115 | 114 | ||