]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warnings in rfc2104
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Jun 2019 23:53:52 +0000 (01:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Jun 2019 23:53:58 +0000 (01:53 +0200)
* lisp/net/rfc2104.el (rfc2104-hash): Remove superflous calls to
string-make-unibyte and avoid two compilation warnings.

lisp/net/rfc2104.el

index 9d4957ddb5d3257d7d7f64bc85bb066e8179587f..5de8401d5b6e8b10de5dba36865e477cb9f921e4 100644 (file)
@@ -99,8 +99,7 @@
       (aset ipad i (logxor rfc2104-ipad c))
       (aset opad i (logxor rfc2104-opad c)))
     ;; Perform inner hash.
-    (setq partial (string-make-unibyte
-                  (funcall hash (concat ipad text))))
+    (setq partial (funcall hash (concat ipad text)))
     ;; Pack latter part of opad.
     (cl-do ((r 0 (+ 2 r))
             (w block-length (1+ w)))
             (+ (* 16 (aref rfc2104-nybbles (aref partial     r)))
                (      aref rfc2104-nybbles (aref partial (1+ r))))))
     ;; Perform outer hash.
-    (string-make-unibyte (funcall hash opad))))
+    (funcall hash opad)))
 
 (provide 'rfc2104)