]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/pthread_getattr_np.3
pthread_getattr_np.3: EXAMPLES: Fix bug in comparison
[thirdparty/man-pages.git] / man3 / pthread_getattr_np.3
index d4ebc7a14088f0069127b35b34591a05b3ab2d50..d1f92029ed5453d761a5dadcb7526355dceef492 100644 (file)
@@ -272,7 +272,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
     if (argc > optind)
         usage(argv[0], "Extraneous command\-line arguments\en");
 \&
-    if (stack_size >= 0 || guard_size > 0) {
+    if (stack_size != -1 || guard_size > 0) {
         ret_attrp = attrp;
 \&
         s = pthread_attr_init(attrp);
@@ -280,7 +280,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
             errc(EXIT_FAILURE, s, "pthread_attr_init");
     }
 \&
-    if (stack_size >= 0) {
+    if (stack_size != -1) {
         if (!allocate_stack) {
             s = pthread_attr_setstacksize(attrp, stack_size);
             if (s != 0)
@@ -298,7 +298,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
         }
     }
 \&
-    if (guard_size >= 0) {
+    if (guard_size != -1) {
         s = pthread_attr_setguardsize(attrp, guard_size);
         if (s != 0)
             errc(EXIT_FAILURE, s, "pthread_attr_setstacksize");