mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-21 11:16:38 +02:00
Cleanup unused variables in utilities... (and hdl.c)
git-svn-id: file:///home/jj/hercules.svn/trunk@7588 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
@@ -4251,7 +4251,6 @@ int main (int argc, char *argv[])
|
||||
{
|
||||
char *pgmname; /* prog name in host format */
|
||||
char *pgm; /* less any extension (.ext) */
|
||||
char *pgmpath; /* prog path in host format */
|
||||
char msgbuf[512]; /* message build work area */
|
||||
int rc = 0; /* Return code */
|
||||
char *cfname; /* -> Control file name */
|
||||
@@ -4290,7 +4289,6 @@ char *strtok_str = NULL; /* last token position */
|
||||
if ( strlen(argv[0]) == 0 )
|
||||
{
|
||||
pgmname = strdup( UTILITY_NAME );
|
||||
pgmpath = strdup( "" );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -4304,13 +4302,11 @@ char *strtok_str = NULL; /* last token position */
|
||||
#if !defined( _MSVC_ )
|
||||
strncpy( path, argv[0], sizeof(path) );
|
||||
#endif
|
||||
pgmpath = strdup( dirname( path ));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pgmname = strdup( UTILITY_NAME );
|
||||
pgmpath = strdup( "" );
|
||||
pgmname = strdup( UTILITY_NAME );
|
||||
}
|
||||
|
||||
pgm = strtok_r( strdup(pgmname), ".", &strtok_str);
|
||||
|
||||
Reference in New Issue
Block a user