[Pkg-privacy-commits] [libgsecuredelete] 125/168: Stop using deprecated API
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 20:06:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository libgsecuredelete.
commit 3dad563c04ba5dd24e5dce119f3288c44d772014
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Sun Jun 3 20:09:48 2012 +0200
Stop using deprecated API
---
gsecuredelete/gsd-swap-operation.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gsecuredelete/gsd-swap-operation.vala b/gsecuredelete/gsd-swap-operation.vala
index 331ad76..82bdf39 100644
--- a/gsecuredelete/gsd-swap-operation.vala
+++ b/gsecuredelete/gsd-swap-operation.vala
@@ -55,9 +55,9 @@ namespace Gsd
* the correct way to proceed? */
private bool swap_is_in_use (string swapdev)
{
- bool in_use = false;
+ var in_use = false;
/* cache variable, only not for computing the size more than once */
- size_t swapdev_len = swapdev.size ();
+ var swapdev_len = swapdev.length;
var file = FileStream.open ("/proc/swaps", "r");
if (file != null) {
@@ -73,9 +73,9 @@ namespace Gsd
* separator.
* No risk of overflow as if we are here @line has the
* @swapdev prefix, and the character at
- * line[swapdev.size()] must be at least the string-ending
+ * line[swapdev.length] must be at least the string-ending
* character (0) */
- " \t".chr (-1, ((char[])line)[swapdev_len]) != null;
+ " \t".index_of_char (line[swapdev_len]) != -1;
}
} while (line != null && ! in_use);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git
More information about the Pkg-privacy-commits
mailing list