summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ptools/ptree/ptree.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ptools/ptree/ptree.c')
-rw-r--r--usr/src/cmd/ptools/ptree/ptree.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/src/cmd/ptools/ptree/ptree.c b/usr/src/cmd/ptools/ptree/ptree.c
index 0f5377d901..f39f4067b8 100644
--- a/usr/src/cmd/ptools/ptree/ptree.c
+++ b/usr/src/cmd/ptools/ptree/ptree.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -302,7 +301,7 @@ retry:
if (arg++ == NULL)
arg = *argv;
argv++;
- uid = -1;
+ uid = (uid_t)-1;
errno = 0;
pid = strtoul(arg, &next, 10);
if (errno != 0 || *next != '\0') {
@@ -339,7 +338,7 @@ retry:
(!zflag ||
p->zoneid == zoneid))
p->done = 1;
- if (uid == -1)
+ if (uid == (uid_t)-1)
break;
}
}