diff options
author | p37sitdu <devnull@localhost> | 2012-12-07 19:54:50 +0000 |
---|---|---|
committer | p37sitdu <devnull@localhost> | 2012-12-07 19:54:50 +0000 |
commit | a6a78074bfe343a3e2362247131ac0c69521a245 (patch) | |
tree | 451377b2617dceda5ead609227b7b86d0c26992a /dpid/dpid.c | |
parent | af5ba96e99d8ceeab04e5b046e600ca68a2aa50f (diff) |
rm unused variable usr_srv_num
Diffstat (limited to 'dpid/dpid.c')
-rw-r--r-- | dpid/dpid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dpid/dpid.c b/dpid/dpid.c index ff95b702..28cfabba 100644 --- a/dpid/dpid.c +++ b/dpid/dpid.c @@ -336,7 +336,7 @@ int register_all(struct dp **attlist) char *user_dpidir = NULL, *sys_dpidir = NULL, *dpidrc = NULL; struct dirent *user_dirent, *sys_dirent; int st; - int snum, usr_srv_num; + int snum; size_t dp_sz = sizeof(struct dp); if (*attlist != NULL) { @@ -370,7 +370,7 @@ int register_all(struct dp **attlist) } /* Get list of services in user's .dillo/dpi directory */ - snum = usr_srv_num = 0; + snum = 0; if (user_dpidir && (user_dir_stream = opendir(user_dpidir)) != NULL) { while ((user_dirent = readdir(user_dir_stream)) != NULL) { if (user_dirent->d_name[0] == '.') @@ -380,7 +380,6 @@ int register_all(struct dp **attlist) if (st == 0) snum++; } - usr_srv_num = snum; closedir(user_dir_stream); } if (sys_dpidir && (sys_dir_stream = opendir(sys_dpidir)) != NULL) { |