summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c2
-rw-r--r--source3/web/startstop.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 874447359b..bf99a67a04 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -41,7 +41,6 @@ static struct var variables[MAX_VARIABLES];
static int num_variables;
static int content_length;
static int request_post;
-static int request_get;
static char *query_string;
static char *baseurl;
static char *pathinfo;
@@ -410,7 +409,6 @@ void cgi_setup(char *rootdir, int auth_required)
#endif
if (line[0] == '\r' || line[0] == '\n') break;
if (strncasecmp(line,"GET ", 4)==0) {
- request_get = 1;
url = strdup(&line[4]);
} else if (strncasecmp(line,"POST ", 5)==0) {
request_post = 1;
diff --git a/source3/web/startstop.c b/source3/web/startstop.c
index 63e5afead2..9eeac96cc0 100644
--- a/source3/web/startstop.c
+++ b/source3/web/startstop.c
@@ -71,7 +71,7 @@ void start_nmbd(void)
/* stop smbd */
void stop_smbd(void)
{
- unsigned pid = pidfile_pid("smbd");
+ pid_t pid = pidfile_pid("smbd");
if (geteuid() != 0) return;
@@ -83,7 +83,7 @@ void stop_smbd(void)
/* stop nmbd */
void stop_nmbd(void)
{
- unsigned pid = pidfile_pid("nmbd");
+ pid_t pid = pidfile_pid("nmbd");
if (geteuid() != 0) return;
@@ -93,7 +93,7 @@ void stop_nmbd(void)
}
/* kill a specified process */
-void kill_pid(int pid)
+void kill_pid(pid_t pid)
{
if (geteuid() != 0) return;