Browse Source

Cosmetics

Piotr Czajkowski 6 years ago
parent
commit
298c31e202
2 changed files with 4 additions and 7 deletions
  1. 3 3
      zip.c
  2. 1 4
      zip.h

+ 3 - 3
zip.c

@@ -39,7 +39,7 @@ int rewriteZIP(struct archive *archiveIn, struct archive *archiveOut) {
 	return 1;
 }
 
-int processDOCX(char const *infile, char const *outfile) {
+int processDOCX(const char *infile, const char *outfile) {
 	struct archive *archiveIn;
 	struct archive *archiveOut;
 
@@ -58,7 +58,7 @@ int processDOCX(char const *infile, char const *outfile) {
 	return 1;
 }
 
-int process(char const *infile, char *outfile) {
+int process(const char *infile, char *outfile) {
 	if (!outfile || strcmp(infile, outfile) == 0){
 		const char *outfile = "tmpFile.docx";
 		processDOCX(infile, outfile);
@@ -67,4 +67,4 @@ int process(char const *infile, char *outfile) {
 		processDOCX(infile, outfile);
 	}
 	return 1;
-}
+}

+ 1 - 4
zip.h

@@ -4,7 +4,4 @@
 #include <string.h>
 #include "comments.h"
 
-int processComments(struct archive *archiveOut, XMLBuff *comments);
-int rewriteZIP(struct archive *archiveIn, struct archive *archiveOut);
-int processDOCX(char const *infile, char const *outfile);
-int process(char const *infile, char *outfile);
+int process(char const *infile, char *outfile);