File sentinel.patch of Package hanterm-xf
diff -ru hanterm-xf-2.0.5-173.orig/hanutil.c hanterm-xf-2.0.5-173/hanutil.c
--- hanterm-xf-2.0.5-173.orig/hanutil.c 2002-09-16 08:21:25.000000000 +0200
+++ hanterm-xf-2.0.5-173/hanutil.c 2005-04-13 12:05:58.000000000 +0200
@@ -175,8 +175,8 @@
close(1);
dup(fd[1]);
close(fd[0]);
- if( buf[0] != 0) execlp(*params,*params,buf,0);
- else execlp(*params,*params,0);
+ if( buf[0] != 0) execlp(*params,*params,buf, (void *) 0);
+ else execlp(*params,*params, (void *) 0);
/* not reached */
exit(1);
}
diff -ru hanterm-xf-2.0.5-173.orig/main.c hanterm-xf-2.0.5-173/main.c
--- hanterm-xf-2.0.5-173.orig/main.c 2002-12-30 03:14:00.000000000 +0100
+++ hanterm-xf-2.0.5-173/main.c 2005-04-13 11:59:34.000000000 +0200
@@ -4058,7 +4058,7 @@
TRACE(("spawning command \"%s\"\n", *command_to_exec));
execvp(*command_to_exec, command_to_exec);
if (command_to_exec[1] == 0)
- execlp(ptr, shname, "-c", command_to_exec[0], 0);
+ execlp(ptr, shname, "-c", command_to_exec[0], (void *) 0);
/* print error message on screen */
fprintf(stderr, "%s: Can't execvp %s: %s\n",
xterm_name, *command_to_exec, strerror(errno));