fflush(stdout);
}
+static unsigned char ptbl[512];
+
void list_partition(char *devname)
{
- unsigned char ptbl[512],*partition;
+ unsigned char *partition;
unsigned long seccnt;
int i;
static int eflag; /* -e option flag */
static int gflag; /* -g option flag */
-int main(int argc, char **argv);
+int main(int argc, char *argv[]);
static void compile(void);
static int cmdcomp(char cchar);
static char *rhscomp(char *rhsp, int delim);
* puts it into the line1 and line2 arrays. It then calls the cmp () routine
* with the field describing the arguments.
*/
+
+
int cmp_fields(char *el1, char *el2)
{
+ static char line1[LINE_SIZE], line2[LINE_SIZE];
int i, ret;
- char line1[LINE_SIZE], line2[LINE_SIZE];
for (i = 0; i < field_cnt; i++) { /* Setup line parts */
build_field(line1, &fields[i + 1], el1);
/* Uniq_lines () prints only the uniq lines out of the fd of the merg struct. */
void uniq_lines(MERGE *merg)
{
- char lastline[LINE_SIZE]; /* Buffer to hold last line */
+ static char lastline[LINE_SIZE]; /* Buffer to hold last line */
for (;;) {
put_line(merg->line); /* Print this line */
void check_file(int fd, char *file)
{
register MERGE *merg; /* 1 file only */
- char lastline[LINE_SIZE]; /* Save last line */
+ static char lastline[LINE_SIZE]; /* Save last line */
register int ret; /* ret status of compare */
if (fd == 0) file = "stdin";