Skip to content

Commit 5112760

Browse files
Delete Revision
Signed-off-by: Akshat Sikarwar <[email protected]>
1 parent 306c6e7 commit 5112760

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

csc2/macc_so.c

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ int comdb2_iam_master();
5353
extern int gbl_ready;
5454
extern int gbl_create_mode;
5555

56-
char *revision = "$Revision: 1.24 $";
5756
int unionflag = 0;
5857
int dimidx = 0, dims[7], rngidx = 0, ranges[2], range_or_array = 0, range = 0,
5958
declaration = 0, cparse = -1;
@@ -2568,16 +2567,8 @@ int macc_ferror(FILE *fh)
25682567
static int dyns_load_schema_int(char *filename, char *schematxt, char *dbname,
25692568
char *tablename)
25702569
{
2571-
char *ifn = NULL;
25722570
int fhopen = 0;
25732571
extern FILE *yyin; /* lexer's input file */
2574-
2575-
char VER[16];
2576-
strcpy(VER, revision + 10); /* get my version */
2577-
ifn = strchr(VER, '$'); /* clean up version text */
2578-
if (ifn)
2579-
*ifn = 0;
2580-
25812572
macc_globals->flag_anyname = 1;
25822573
if (strlen(dbname) >= MAX_DBNAME_LENGTH || strlen(dbname) < 3) {
25832574
csc2_error("ERROR: BAD DATABASE NAME '%s'. VALID=3-%d CHARACTERS\n",
@@ -2594,21 +2585,16 @@ static int dyns_load_schema_int(char *filename, char *schematxt, char *dbname,
25942585

25952586
/* check args for an input filename or any options */
25962587
if (schematxt) {
2597-
ifn = dbname;
25982588
ischematext = schematxt;
25992589
ipos = 0;
26002590
iusestr = 1;
26012591
} else if (filename) {
2602-
ifn = filename;
2603-
if (ifn) {
2604-
yyin = fopen(ifn, "r");
2605-
if (yyin == NULL) {
2606-
csc2_error( "Can't open file '%s': %s\n", ifn,
2607-
strerror(errno));
2608-
return -1;
2609-
}
2610-
fhopen = 1;
2592+
yyin = fopen(filename, "r");
2593+
if (yyin == NULL) {
2594+
csc2_error( "Can't open file '%s': %s\n", filename, strerror(errno));
2595+
return -1;
26112596
}
2597+
fhopen = 1;
26122598
iusestr = 0;
26132599
} else {
26142600
csc2_error( "BAD CALL\n");

0 commit comments

Comments
 (0)