[patch] dpid/dpid.c unused variable

[email protected]
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
Patch removes unused variable usr_srv_num.

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
usr_srv_num.diff (text/plain, 851 B)
diff -r 6a525e279c5d dpid/dpid.c
--- a/dpid/dpid.c
+++ b/dpid/dpid.c
@@ -336,7 +336,7 @@
    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 @@
    }
 
    /* 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 @@
          if (st == 0)
             snum++;
       }
-      usr_srv_num = snum;
       closedir(user_dir_stream);
    }
    if (sys_dpidir && (sys_dir_stream = opendir(sys_dpidir)) != NULL) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.