]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorThorsten Kukuk <kukuk@thkukuk.de>
Thu, 15 Jun 2006 20:21:29 +0000 (20:21 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Thu, 15 Jun 2006 20:21:29 +0000 (20:21 +0000)
Purpose of commit: cleanup

Commit summary:
---------------

2006-06-15  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_time/pam_time.c (logic_member): Remove unused
        variable len.

ChangeLog
modules/pam_time/pam_time.c

index 108a7784048af089d7190997dd342b89420c22a4..5ec2a09fbec3099ee9e4c466b90dd120d9b041cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-06-15  Thorsten Kukuk  <kukuk@thkukuk.de>
 
+       * modules/pam_time/pam_time.c (logic_member): Remove unused
+       variable len.
+
        * modules/pam_group/pam_group.c (logic_field): Accept
        colon in tty name. [#1428276].
        (logic_member): Remove unused variable len.
index a3e94eb19d5bf3c00fbf0f13b578d9f66acb2220..075d951fd1c5bae9f828a48fb84a5eeb36f44a96 100644 (file)
@@ -214,11 +214,10 @@ read_field(pam_handle_t *pamh, int fd, char **buf, int *from, int *to)
 static int
 logic_member(const char *string, int *at)
 {
-     int len,c,to;
+     int c,to;
      int done=0;
      int token=0;
 
-     len=0;
      to=*at;
      do {
          c = string[to++];