summaryrefslogtreecommitdiffstats
path: root/hw2/big_judge.c
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-11-15 22:35:34 +0800
committerLAN-TW <lantw44@gmail.com>2013-11-15 22:35:34 +0800
commitfd5eea92e3f2337e5fd5f336863e5356eda4226f (patch)
treecb8316405feec1254e5532a03ad96a33bd83323a /hw2/big_judge.c
parent985f001f57343e0329df4824362708c163b91fd5 (diff)
downloadsp2013-fd5eea92e3f2337e5fd5f336863e5356eda4226f.tar.gz
sp2013-fd5eea92e3f2337e5fd5f336863e5356eda4226f.tar.zst
sp2013-fd5eea92e3f2337e5fd5f336863e5356eda4226f.zip
HW2: 基本的 judge 功能,但不按順序讀入仍會有問題
Diffstat (limited to 'hw2/big_judge.c')
-rw-r--r--hw2/big_judge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw2/big_judge.c b/hw2/big_judge.c
index c7103f0..92ca701 100644
--- a/hw2/big_judge.c
+++ b/hw2/big_judge.c
@@ -97,7 +97,7 @@ int main (int argc, char* argv[]) {
close (fdr[0]);
close (fdw[1]);
char* myjudge = xgetres ("judge");
- execl (myjudge, "judge", xsprintf ("%d", i + 1), NULL);
+ execl (myjudge, "judge", xsprintf ("%d", i + 1), (char*)NULL);
fprintf (stderr, "%s: execl: %s: %s\n", argv[0], myjudge, strerror (errno));
_exit (1);
}