aboutsummaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-14 16:07:12 +0200
committerjcid <devnull@localhost>2008-09-14 16:07:12 +0200
commit8a2b5a9e5b8aad195531603aedbbdd5a9eb98bfa (patch)
tree6053a7217a9c976c0d1e78bb57c4052ba8353e53 /dpi
parent4272ccda16b3d6b8695f01eb3c6ea544a97cbf54 (diff)
- Made several cleanups according to compiler warnings with "-W -Wall".
Diffstat (limited to 'dpi')
-rw-r--r--dpi/bookmarks.c16
-rw-r--r--dpi/file.c5
2 files changed, 10 insertions, 11 deletions
diff --git a/dpi/bookmarks.c b/dpi/bookmarks.c
index 55d34d31..36615496 100644
--- a/dpi/bookmarks.c
+++ b/dpi/bookmarks.c
@@ -1107,7 +1107,7 @@ static int Bmsrv_send_modify_answer(SockHandler *sh, char *url)
* Parse a delete bms request, delete them, and update bm file.
* Return code: { 0:OK, 1:Abort }
*/
-static int Bmsrv_modify_delete(SockHandler *sh, char *url)
+static int Bmsrv_modify_delete(char *url)
{
char *p;
int nb, ns, key;
@@ -1153,7 +1153,7 @@ static int Bmsrv_modify_delete(SockHandler *sh, char *url)
* Parse a move urls request, move and update bm file.
* Return code: { 0:OK, 1:Abort }
*/
-static int Bmsrv_modify_move(SockHandler *sh, char *url)
+static int Bmsrv_modify_move(char *url)
{
char *p;
int n, section = 0, key;
@@ -1192,7 +1192,7 @@ static int Bmsrv_modify_move(SockHandler *sh, char *url)
* Parse a modify request: update urls and sections, then save.
* Return code: { 0:OK, 1:Abort }
*/
-static int Bmsrv_modify_update(SockHandler *sh, char *url)
+static int Bmsrv_modify_update(char *url)
{
char *p, *q, *title;
int i, key;
@@ -1247,7 +1247,7 @@ static int Bmsrv_modify_update(SockHandler *sh, char *url)
* Parse an "add section" request, and update the bm file.
* Return code: { 0:OK, 1:Abort }
*/
-static int Bmsrv_modify_add_section(SockHandler *sh, char *url)
+static int Bmsrv_modify_add_section(char *url)
{
char *p, *title = NULL;
@@ -1400,13 +1400,13 @@ static int Bmsrv_process_modify_request(SockHandler *sh, char *url)
return 2;
if (strstr(url, "operation=delete&")) {
- if (Bmsrv_modify_delete(sh, url) == 1)
+ if (Bmsrv_modify_delete(url) == 1)
return 1;
if (Bmsrv_send_reload_request(sh, "dpi:/bm/modify") == 1)
return 1;
} else if (strstr(url, "operation=move&")) {
- if (Bmsrv_modify_move(sh, url) == 1)
+ if (Bmsrv_modify_move(url) == 1)
return 1;
if (Bmsrv_send_reload_request(sh, "dpi:/bm/modify") == 1)
return 1;
@@ -1419,7 +1419,7 @@ static int Bmsrv_process_modify_request(SockHandler *sh, char *url)
return 1;
} else if (strstr(url, "operation=modify2&")) {
- if (Bmsrv_modify_update(sh, url) == 1)
+ if (Bmsrv_modify_update(url) == 1)
return 1;
if (Bmsrv_send_reload_request(sh, "dpi:/bm/modify") == 1)
return 1;
@@ -1431,7 +1431,7 @@ static int Bmsrv_process_modify_request(SockHandler *sh, char *url)
return 1;
} else if (strstr(url, "operation=add_section&")) {
- if (Bmsrv_modify_add_section(sh, url) == 1)
+ if (Bmsrv_modify_add_section(url) == 1)
return 1;
if (Bmsrv_send_reload_request(sh, "dpi:/bm/modify") == 1)
return 1;
diff --git a/dpi/file.c b/dpi/file.c
index 67fb0e64..d7612f64 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -318,8 +318,7 @@ static void File_print_mtime(ClientInfo *Client, time_t mtime)
/*
* Return a HTML-line from file info.
*/
-static void File_info2html(ClientInfo *Client,
- FileInfo *finfo, const char *dirname, int n)
+static void File_info2html(ClientInfo *Client, FileInfo *finfo, int n)
{
int size;
char *sizeunits;
@@ -451,7 +450,7 @@ static void File_transfer_dir(ClientInfo *Client,
/* Output entries */
for (n = 0; n < dList_length(Ddir->flist); ++n) {
- File_info2html(Client, dList_nth_data(Ddir->flist,n),Ddir->dirname,n+1);
+ File_info2html(Client, dList_nth_data(Ddir->flist,n), n+1);
}
if (dList_length(Ddir->flist)) {