diff contrib/chg/chg.c @ 30693:baee0f47b533

chg: add procutil.h This patch adds a formal header procutil.h for procutil.c, and changes Makefile to build procutil.c independently.
author Jun Wu <quark@fb.com>
date Mon, 02 Jan 2017 14:57:14 +0000
parents 23ddd43ba866
children fde9692a02c0
line wrap: on
line diff
--- a/contrib/chg/chg.c	Mon Jan 02 14:43:37 2017 +0000
+++ b/contrib/chg/chg.c	Mon Jan 02 14:57:14 2017 +0000
@@ -23,6 +23,7 @@
 #include <unistd.h>
 
 #include "hgclient.h"
+#include "procutil.h"
 #include "util.h"
 
 #ifndef PATH_MAX
@@ -303,8 +304,6 @@
 	}
 }
 
-#include "procutil.c"
-
 /* Run instructions sent from the server like unlink and set redirect path
  * Return 1 if reconnect is needed, otherwise 0 */
 static int runinstructions(struct cmdserveropts *opts, const char **insts)