Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/smbfs/lib/smb remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/0ec31938850e
branches:  trunk
changeset: 790797:0ec31938850e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 21 14:57:56 2013 +0000

description:
remove unused variables

diffstat:

 dist/smbfs/lib/smb/rap.c  |  11 ++++-------
 dist/smbfs/lib/smb/subr.c |   7 +++----
 2 files changed, 7 insertions(+), 11 deletions(-)

diffs (75 lines):

diff -r 29c9d32d476f -r 0ec31938850e dist/smbfs/lib/smb/rap.c
--- a/dist/smbfs/lib/smb/rap.c  Mon Oct 21 14:47:46 2013 +0000
+++ b/dist/smbfs/lib/smb/rap.c  Mon Oct 21 14:57:56 2013 +0000
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rap.c,v 1.7 2011/08/14 12:35:35 christos Exp $");
+__RCSID("$NetBSD: rap.c,v 1.8 2013/10/21 14:57:56 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/errno.h>
@@ -57,9 +57,8 @@
 smb_rap_parserqparam(const char *s, char **next, int *rlen)
 {
        char *np;
-       int len, m;
+       int len;
 
-       m = 1;
        switch (*s++) {
            case 'L':
            case 'T':
@@ -94,9 +93,8 @@
 smb_rap_parserpparam(const char *s, char **next, int *rlen)
 {
        char *np;
-       int len, m;
+       int len;
 
-       m = 1;
        switch (*s++) {
            case 'e':
            case 'h':
@@ -124,9 +122,8 @@
 smb_rap_parserpdata(const char *s, char **next, int *rlen)
 {
        char *np;
-       int len, m;
+       int len;
 
-       m = 1;
        switch (*s++) {
            case 'B':
                len = 1;
diff -r 29c9d32d476f -r 0ec31938850e dist/smbfs/lib/smb/subr.c
--- a/dist/smbfs/lib/smb/subr.c Mon Oct 21 14:47:46 2013 +0000
+++ b/dist/smbfs/lib/smb/subr.c Mon Oct 21 14:57:56 2013 +0000
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: subr.c,v 1.7 2011/09/22 16:08:49 he Exp $");
+__RCSID("$NetBSD: subr.c,v 1.8 2013/10/21 14:57:56 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -165,15 +165,14 @@
 smb_open_rcfile(void)
 {
        char *home;
-       int error;
 
        home = getenv("HOME");
        if (home) {
                char fn[1024];
                snprintf(fn, sizeof(fn), "%s/.nsmbrc", home);
-               error = rc_open(fn, "r", &smb_rc);
+               (void)rc_open(fn, "r", &smb_rc);
        }
-       error = rc_merge(SMB_CFG_FILE, &smb_rc);
+       (void)rc_merge(SMB_CFG_FILE, &smb_rc);
        if (smb_rc == NULL)
                return ENOENT;
        return 0;



Home | Main Index | Thread Index | Old Index