remove unused variables

This commit is contained in:
christos 2013-10-21 14:57:56 +00:00
parent a64eb75968
commit 20b11003ce
2 changed files with 7 additions and 11 deletions

View File

@ -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 @@ static int
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 @@ static int
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 @@ static int
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;

View File

@ -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 @@ int
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;