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:
Paul Gorlinsky
2011-07-18 18:59:53 +00:00
parent ee4e7ef5fc
commit 6ee1e4f856
16 changed files with 27 additions and 118 deletions

View File

@@ -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);