From 28fcd5ed7a22314ae06546b4d0f11b96ace8398a Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 26 May 2025 23:12:16 +0200 Subject: [PATCH] change file trans.{c,h} to encode.{c,h} --- Makefile | 6 +++--- trans.c => encode.c | 2 +- trans.h => encode.h | 4 ++-- main.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename trans.c => encode.c (99%) rename trans.h => encode.h (74%) diff --git a/Makefile b/Makefile index a870852..4567eca 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ CFLAGS = -g -Wall -Wextra -Werror -objects = main.o input.o trans.o +objects = main.o input.o encode.o b64 : $(objects) cc -o b64 $(objects) -main.o trans.o input.o : input.h -main.o trans.o : trans.h +main.o encode.o input.o : input.h +main.o encode.o : encode.h .PHONY : clean clean : diff --git a/trans.c b/encode.c similarity index 99% rename from trans.c rename to encode.c index 6b48e0b..576f9f3 100644 --- a/trans.c +++ b/encode.c @@ -1,4 +1,4 @@ -#include "trans.h" +#include "encode.h" #define PADDING '=' diff --git a/trans.h b/encode.h similarity index 74% rename from trans.h rename to encode.h index 3b4fa5c..f211396 100644 --- a/trans.h +++ b/encode.h @@ -1,5 +1,5 @@ -#ifndef HEADER_TRANS -#define HEADER_TRANS +#ifndef HEADER_ENCODE +#define HEADER_ENCODE int encode(unsigned char *op, int olen, unsigned char *sp); diff --git a/main.c b/main.c index 77dd98a..ff16bf6 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,7 @@ #include #include #include "input.h" -#include "trans.h" +#include "encode.h" #define OBUFSIZE 4 #define SBUFSIZE 5