Browse Source

Get rid of a warning with g++ 3.x.

Douglas William Thrift 14 years ago
parent
commit
4e43a2c7b7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dtpstree.cpp

+ 2 - 2
dtpstree.cpp

@@ -750,7 +750,7 @@ static uint16_t options(int argc, char *argv[], pid_t &hpid, pid_t &pid, char *&
 
 int main(int argc, char *argv[])
 {
-	pid_t hpid(-1), pid(-1);
+	pid_t hpid(0), pid(0);
 	char *user(NULL);
 	uint16_t flags(options(argc, argv, hpid, pid, user));
 
@@ -761,7 +761,7 @@ int main(int argc, char *argv[])
 		return 0;
 	}
 
-	uid_t uid(-1);
+	uid_t uid(0);
 
 	if (flags & User)
 	{