]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/bsd-waitpid.c
Import of OpenSSH 3.7p1
[gssapi-openssh.git] / openssh / openbsd-compat / bsd-waitpid.c
index c2178d6b11bf295c9ef3bc82d793e9456019c1ab..918ce3589906ce244969b662ec8ceec1d696074d 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * Copyright (c) 2000 Ben Lindstrom.  All rights reserved.
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -38,15 +40,16 @@ waitpid(int pid, int *stat_loc, int options)
        if (pid <= 0) {
                if (pid != -1) {
                        errno = EINVAL;
-                       return -1;
+                       return (-1);
                }
-               pid = 0;   /* wait4() wants pid=0 for indiscriminate wait. */
+               /* wait4() wants pid=0 for indiscriminate wait. */
+               pid = 0;
        }
         wait_pid = wait4(pid, &statusp, options, NULL);
        if (stat_loc)
                *stat_loc = (int) statusp.w_status;            
 
-        return wait_pid;                               
+        return (wait_pid);                               
 }
 
 #endif /* !HAVE_WAITPID */
This page took 0.065264 seconds and 4 git commands to generate.