diff options
author | subrata_modak <subrata_modak> | 2008-11-11 05:15:52 +0000 |
---|---|---|
committer | subrata_modak <subrata_modak> | 2008-11-11 05:15:52 +0000 |
commit | e312d9ee7dc1876f4f7d5ad985903caac35c2542 (patch) | |
tree | e8e43180eb6b8e2ea113fc05d71082aebecfd37f /pan | |
parent | 424f279e2f0a88b59b34778fd5fa00afcb0915e9 (diff) |
Hello, these are some little fixes I've created for ltp. They are typos, fixes for compiler warning, bashisms in the makefiles etc. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
Diffstat (limited to 'pan')
-rw-r--r-- | pan/pan.c | 4 | ||||
-rw-r--r-- | pan/zoolib.c | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -49,7 +49,7 @@ * - added option to create a command file with all failed tests. * */ -/* $Id: pan.c,v 1.27 2008/10/29 07:03:39 subrata_modak Exp $ */ +/* $Id: pan.c,v 1.28 2008/11/11 05:15:52 subrata_modak Exp $ */ #include <errno.h> #include <string.h> @@ -895,7 +895,7 @@ run_child(struct coll_entry *colle, struct tag_pgrp *active, int quiet_mode) * cmd directly. */ if (strpbrk(c_cmdline, "\"';|<>$\\")) { - execlp("sh", "sh", "-c", c_cmdline, 0); + execlp("sh", "sh", "-c", c_cmdline, (char*)0); errlen = sprintf(errbuf, "pan(%s): execlp of '%s' (tag %s) failed. errno:%d %s", panname, c_cmdline, colle->name, errno, strerror(errno)); diff --git a/pan/zoolib.c b/pan/zoolib.c index ece025d01..3e317330b 100644 --- a/pan/zoolib.c +++ b/pan/zoolib.c @@ -30,7 +30,7 @@ * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * */ -/* $Id: zoolib.c,v 1.6 2006/06/27 09:37:34 vapier Exp $ */ +/* $Id: zoolib.c,v 1.7 2008/11/11 05:15:52 subrata_modak Exp $ */ /* * ZooLib * @@ -169,7 +169,7 @@ zoo_mark(zoo_t z, char *entry) found = 1; break; } - } while (buf); + } while (1); if (!found) { if (fseek(fp, 0, SEEK_END)) { @@ -251,7 +251,7 @@ zoo_clear(zoo_t z, pid_t p) found = 1; break; } - } while (buf); + } while (1); fflush( fp ); @@ -299,7 +299,7 @@ zoo_getpid(zoo_t z, char *tag) this_pid = atoi(buf); break; - } while (buf); + } while (1); if (zoo_unlock(z)) return -1; |