commit 6c09e2385aafd143109db6853a0a3e3d420f82f5
parent 2724ee05fa1f097c45dd2d06a31e41551a47fb66
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date: Sun, 7 Nov 2021 03:16:46 +0000
Minor updates
Diffstat:
5 files changed, 77 insertions(+), 76 deletions(-)
diff --git a/app/napp.1 b/app/napp.1
@@ -1,6 +1,6 @@
.\" Manpage for napp
-.TH man 8 "10 Oct 2021" "1.1.1" "napp manual page"
+.TH man 8 "10 Oct 2021" "1.1.2" "napp manual page"
.SH NAME
napp \- Narthex appender
.SH SYNOPSIS
diff --git a/app/napp.c b/app/napp.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <ctype.h>
-#define VERSION "v1.1.1"
+#define VERSION "v1.1.2"
#define BUFFER_SIZE 256
static inline void
@@ -109,7 +109,7 @@ static void
print_only(FILE *f)
{
char buffer[BUFFER_SIZE];
- while(fgets(buffer, sizeof(buffer), f) != NULL) {
+ while (fgets(buffer, sizeof(buffer), f) != NULL) {
printf("%s",buffer);
}
}
@@ -125,32 +125,32 @@ main(int argc, char * argv[])
extern char *optarg;
int optind = 0;
- while ( (c = getopt(argc, argv, "c:w:sfvh")) != -1 ) {
+ while ((c = getopt(argc, argv, "c:w:sfvh")) != -1 ) {
switch (c) {
- case 'v':
- die(VERSION);
- case 'h':
- help(argv[0]);
- case 'c':
- c1=1;
- w=0;
- strncpy(cv, optarg, BUFFER_SIZE);
- break;
- case 'w':
- w=1;
- c1=0;
- strncpy(wv, optarg, BUFFER_SIZE);
- break;
- case 's':
- s=1;
- break;
- case 'f':
- front=1;
- break;
- case '?':
- usage(argv[0]);
- exit(EXIT_FAILURE);
- break;
+ case 'v':
+ die(VERSION);
+ case 'h':
+ help(argv[0]);
+ case 'c':
+ c1=1;
+ w=0;
+ strncpy(cv, optarg, BUFFER_SIZE);
+ break;
+ case 'w':
+ w=1;
+ c1=0;
+ strncpy(wv, optarg, BUFFER_SIZE);
+ break;
+ case 's':
+ s=1;
+ break;
+ case 'f':
+ front=1;
+ break;
+ case '?':
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ break;
}
}
diff --git a/clean/nclean.1 b/clean/nclean.1
@@ -1,6 +1,6 @@
.\" Manpage for nclean
-.TH man 8 "10 Oct 2021" "1.1.1" "nclean manual page"
+.TH man 8 "10 Oct 2021" "1.1.2" "nclean manual page"
.SH NAME
nclean \- Narthex cleaner
.SH SYNOPSIS
diff --git a/clean/nclean.c b/clean/nclean.c
@@ -22,7 +22,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
@@ -32,7 +32,7 @@
#include <ctype.h>
#include <unistd.h>
-#define VERSION "v1.1.1"
+#define VERSION "v1.1.2"
#define BUFFER_SIZE 256
static inline void
@@ -145,29 +145,29 @@ main(int argc, char *argv[])
extern char *optarg;
int optind = 0;
- while ( (c = getopt(argc, argv, "cnsvhl:")) != -1 ) {
+ while ((c = getopt(argc, argv, "cnsvhl:")) != -1 ) {
switch (c) {
- case 'v':
- die(VERSION);
- case 'h':
- help(argv[0]);
- case 'c':
- c1=1;
- break;
- case 'n':
- n=1;
- break;
- case 's':
- s=1;
- break;
- case 'l':
- l=1;
- lvalue=atoi(optarg);
- break;
- case '?':
- usage(argv[0]);
- exit(EXIT_FAILURE);
- break;
+ case 'v':
+ die(VERSION);
+ case 'h':
+ help(argv[0]);
+ case 'c':
+ c1=1;
+ break;
+ case 'n':
+ n=1;
+ break;
+ case 's':
+ s=1;
+ break;
+ case 'l':
+ l=1;
+ lvalue=atoi(optarg);
+ break;
+ case '?':
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ break;
}
}
diff --git a/com/ncom.c b/com/ncom.c
@@ -106,6 +106,7 @@ com(FILE *f2, FILE *f3, int d, int u, int m, int n, int b)
}
}
}
+
rewind(f3);
}
}
@@ -132,29 +133,29 @@ main(int argc, char *argv[])
while ((c = getopt(argc, argv, "dumnvbh")) != -1 )
switch (c) {
- case 'v':
- die(VERSION);
- case 'h':
- help(argv[0]);
- case 'd':
- d=1;
- break;
- case 'u':
- u=1;
- break;
- case 'm':
- m=1;
- break;
- case 'n':
- n=1;
- break;
- case 'b':
- b=1;
- break;
- case '?':
- /*fprintf (stderr, "Unknown option `%c`\n", c);*/
- exit(EXIT_FAILURE);
- break;
+ case 'v':
+ die(VERSION);
+ case 'h':
+ help(argv[0]);
+ case 'd':
+ d=1;
+ break;
+ case 'u':
+ u=1;
+ break;
+ case 'm':
+ m=1;
+ break;
+ case 'n':
+ n=1;
+ break;
+ case 'b':
+ b=1;
+ break;
+ case '?':
+ /*fprintf (stderr, "Unknown option `%c`\n", c);*/
+ exit(EXIT_FAILURE);
+ break;
}
/* for troubleshooting: