From 894c0903c6e4098de91f5ade0e7a25e6e5797c4c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 20 Dec 2008 03:07:46 +0100 Subject: [PATCH] Rename some C utils. --HG-- extra : convert_revision : 35b27fcbc85ad9f6466cef02759cc0142e6bfafd --- utils/Makefile | 16 ++++++++-------- utils/{plist_utils.c => plist.c} | 0 utils/{plist_utils.h => plist.h} | 0 utils/{sha256_digest.c => sha256.c} | 2 +- utils/{sha256_digest.h => sha256.h} | 0 utils/xbps_api.h | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) rename utils/{plist_utils.c => plist.c} (100%) rename utils/{plist_utils.h => plist.h} (100%) rename utils/{sha256_digest.c => sha256.c} (99%) rename utils/{sha256_digest.h => sha256.h} (100%) diff --git a/utils/Makefile b/utils/Makefile index d0fac22773c..52ab797e8d2 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -8,29 +8,29 @@ all: xbps_digest xbps_pkgdb xbps_bin xbps-cmpver clean_objs xbps-cmpver: xbps-cmpver.o $(CC) $(CFLAGS) $< -o $@ -sha256_digest: sha256_digest.o +sha256: sha256.o $(CC) $(CFLAGS) -c $@ xbps-digest: xbps-digest.o $(CC) $(CFLAGS) -c $@ -xbps_digest: xbps-digest.o sha256_digest.o - $(CC) -o xbps-digest xbps-digest.o sha256_digest.o +xbps_digest: xbps-digest.o sha256.o + $(CC) -o xbps-digest xbps-digest.o sha256.o xbps-pkgdb: $(CC) $(CFLAGS) -c $@ -plist_utils: +plist: $(CC) $(CFLAGS) -c $@ -xbps_pkgdb: xbps-pkgdb.o plist_utils.o - $(CC) $(LDFLAGS) -o xbps-pkgdb xbps-pkgdb.o plist_utils.o +xbps_pkgdb: xbps-pkgdb.o plist.o + $(CC) $(LDFLAGS) -o xbps-pkgdb xbps-pkgdb.o plist.o xbps-bin: $(CC) $(CFLAGS) -c $@ -xbps_bin: xbps-bin.o plist_utils.o - $(CC) $(LDFLAGS) -o xbps-bin xbps-bin.o plist_utils.o +xbps_bin: xbps-bin.o plist.o + $(CC) $(LDFLAGS) -o xbps-bin xbps-bin.o plist.o clean_objs: -rm -f *.o diff --git a/utils/plist_utils.c b/utils/plist.c similarity index 100% rename from utils/plist_utils.c rename to utils/plist.c diff --git a/utils/plist_utils.h b/utils/plist.h similarity index 100% rename from utils/plist_utils.h rename to utils/plist.h diff --git a/utils/sha256_digest.c b/utils/sha256.c similarity index 99% rename from utils/sha256_digest.c rename to utils/sha256.c index 317d1938b05..5b309e5e428 100644 --- a/utils/sha256_digest.c +++ b/utils/sha256.c @@ -41,7 +41,7 @@ #include #include -#include "sha256_digest.h" +#include "xbps_api.h" /*** SHA-256 Machine Architecture Definitions *****************/ diff --git a/utils/sha256_digest.h b/utils/sha256.h similarity index 100% rename from utils/sha256_digest.h rename to utils/sha256.h diff --git a/utils/xbps_api.h b/utils/xbps_api.h index ed9dd022d68..1cd3f8014a0 100644 --- a/utils/xbps_api.h +++ b/utils/xbps_api.h @@ -41,9 +41,9 @@ #define XBPS_REGPKGDB_DEFPATH "/var/cache/xbps/regpkgdb.plist" /* API to handle plist files */ -#include "plist_utils.h" +#include "plist.h" /* SHA256 implementation */ -#include "sha256_digest.h" +#include "sha256.h" #endif /* !_XBPS_API_H_ */