]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxagentc.c
Fix a couple of signedness compiler warnings, presumably due to me
[PuTTY.git] / unix / uxagentc.c
index 7b737d1d5ab7c4ecd592109ba86a92fe3c2a1cfb..3605c60124316947ab346975086eccf463fb1cd3 100644 (file)
@@ -122,7 +122,7 @@ int agent_query(void *in, int inlen, void **out, int *outlen,
        exit(1);
     }
 
-    fcntl(sock, F_SETFD, FD_CLOEXEC);
+    cloexec(sock);
 
     addr.sun_family = AF_UNIX;
     strncpy(addr.sun_path, name, sizeof(addr.sun_path));