]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
fix ipcalc
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 26 Nov 2023 15:34:53 +0000 (16:34 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 26 Nov 2023 15:49:38 +0000 (16:49 +0100)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
lisp/ipcalc.el

index a095e9d6c77cd0b6af4e66f484ade1254cfee9be..65a94e1e9efaa38c21aedf80149798b6ab926da5 100644 (file)
         (max (- cidr-default 1)))
     (while (< count max)
       (aset ip count ?1)
-      (setq count(incf count)))
+      (setq count(cl-incf count)))
     ip))
 
 (defun hosts/net (num)
                  `(,1st-octet ,2nd-octet ,3rd-octet ,4th-octet))))
     (while (< count 3)
       (setq full-ip (concat full-ip (nth count octets) "."))
-      (setq count (incf count)))
+      (setq count (cl-incf count)))
     (concat full-ip (car (last octets)))))
 
 (defun ipcalc (ip/cidr)