util: 'cal' fix output.
authorBrett Gordon <beretta42@gmail.com>
Sat, 3 Feb 2018 19:47:03 +0000 (14:47 -0500)
committerBrett Gordon <beretta42@gmail.com>
Sat, 3 Feb 2018 19:47:03 +0000 (14:47 -0500)
Applications/util/cal.c

index 1c61eb5..3affc95 100644 (file)
@@ -235,11 +235,7 @@ void j_yearly(int year)
     printf("\n\n");
     for (i = 0; i < 12; i++)
        day_array(i + 1, year, days[i]);
-#if 0
     memset(lineout, ' ', sizeof(lineout) - 1);
-#else /* Hi-Tech C */
-    memset(lineout, sizeof(lineout) - 1, ' ');
-#endif
     lineout[sizeof(lineout) - 1] = '\0';
     for (month = 0; month < 12; month += 2) {
        center(full_month[month], J_WEEK_LEN, J_HEAD_SEP);
@@ -270,11 +266,7 @@ void yearly(int year)
     printf("\n\n");
     for (i = 0; i < 12; i++)
        day_array(i + 1, year, days[i]);
-#if 0
     memset(lineout, ' ', sizeof(lineout) - 1);
-#else /* Hi-Tech C */
-    memset(lineout, sizeof(lineout) - 1, ' ');
-#endif
     lineout[sizeof(lineout) - 1] = '\0';
     for (month = 0; month < 12; month += 3) {
        center(full_month[month], WEEK_LEN, HEAD_SEP);