Browse Source

Merge branch 'master' of code.douglasthrift.net:dtpstree

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

+ 2 - 2
dtpstree.cpp

@@ -752,7 +752,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));
 
@@ -763,7 +763,7 @@ int main(int argc, char *argv[])
 		return 0;
 	}
 
-	uid_t uid(-1);
+	uid_t uid(0);
 
 	if (flags & User)
 	{