[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/base32 dbb395f298 046/103: Fix some compilation warnings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/base32 dbb395f298 046/103: Fix some compilation warnings |
Date: |
Sat, 10 Feb 2024 13:00:06 -0500 (EST) |
branch: elpa/base32
commit dbb395f298528ee51257615b1dffb116b444a904
Author: Vivek Das Mohapatra <vivek@collabora.co.uk>
Commit: Vivek Das Mohapatra <vivek@collabora.co.uk>
Fix some compilation warnings
---
totp-auth.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/totp-auth.el b/totp-auth.el
index 20c6af45d3..e1681477ba 100644
--- a/totp-auth.el
+++ b/totp-auth.el
@@ -48,6 +48,7 @@
(require 'base32)
(require 'hmac))
(require 'auth-source)
+ (require 'secrets)
(require 'bindat)
(require 'url-parse)
(require 'url-util)
@@ -238,7 +239,7 @@ ignores some otpauth attributes for compatibility with
other authenticators."
Some settings (eg the chunk size) are ignored because they've
never been handled by google authenticator either, which just uses
the default."
- (let (srv query secret digits user)
+ (let (srv service query secret digits user)
(setq u (url-path-and-query u)
srv (replace-regexp-in-string "^/" "" (car u))
srv (url-unhex-string srv)
@@ -418,7 +419,7 @@ Gnome Keyring and KWallet are examples of the freedesktop
secrets services."
:xdg:schema totp-xdg-schema))
;; de-duplicate by hand:
(when totp-secrets-create-item-workaround
- (let (path props schema maybe-dup)
+ (let (path props schema maybe-dup stored)
(setq stored (cdr (assq :secret secret)) ;; secret we just stored
path (secrets-collection-path vault))
(dolist (item-path (secrets-get-items path))
@@ -663,6 +664,10 @@ then wait until it is time to renew the token before doing
anything."
(defun totp-display-token-notification (secret &optional label)
"Display a notification with the current token for SECRET with label LABEL."
+ ;; this is only required if the user has explicitly configured display
+ ;; via notifications - the default path checks to see if notifications
+ ;; support can be loaded before we get here:
+ (require 'notifications)
(or label
(setq label (totp-secret-make-label secret)))
(let (nid update)
- [nongnu] elpa/base32 ff7061d7ef 036/103: Bump version to 0.2 for release attempt, (continued)
- [nongnu] elpa/base32 ff7061d7ef 036/103: Bump version to 0.2 for release attempt, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 1e14f7c45f 016/103: Remove references to debug function that doesn't exist anymore, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 c29822d2f1 015/103: Add totp-pkg.el in preparation for publishing to a package archive, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 47bcc107b8 021/103: Enable substring matching for TOTP secret selection, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 9b6ac038a1 018/103: Eliminate reference to obsolete internal variable in an error path, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 8925afa85b 027/103: Clarify that totp-alt-xdg-schemas is used only to read secrets, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 982c418361 026/103: Docstring style trivia, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 0741c352da 031/103: Add .gitignore, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 cf6483b7fa 030/103: Update docstrings and comments for checkdoc compliance., ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 569f5268ca 038/103: Remove some old (commented out) debug code, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 dbb395f298 046/103: Fix some compilation warnings,
ELPA Syncer <=
- [nongnu] elpa/base32 480dacaf75 043/103: Implement freedesktop notifications based UI, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 1c5810c853 057/103: Continue the Great Renaming into totp-auth-…, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 e113a73b9b 037/103: Add more details to the commentary and README, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 5ea9f39645 045/103: Update commentary to describe the new UI options, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 df9e83880d 044/103: totp-notification-action "copy" should always copy the token, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 e18e58fd96 042/103: totp-truncate-hash: typo in docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 11819b793b 051/103: Suppress a docstring-related byte-compile error, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 32515e59da 052/103: totp-update-token-notification: add docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 2b6c12528c 065/103: Mention Google Authenticator in a couple more places, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 676e64115d 048/103: Test should target totp-auth.el after the rename, ELPA Syncer, 2024/02/10