Skip to content
Browse files

rename tc-play => tcplay

  • Loading branch information...
1 parent 38499ea commit 1af29c17b7bf4e720fce457221d4e98ad50d8fd6 @bwalex committed Jul 3, 2011
Showing with 16 additions and 16 deletions.
  1. +4 −4 Makefile
  2. +1 −1 crypto-dev.c
  3. +1 −1 crypto.c
  4. +1 −1 hdr.c
  5. +1 −1 io.c
  6. +3 −3 main.c
  7. +1 −1 safe_mem.c
  8. +1 −1 tc-play.c → tcplay.c
  9. +1 −1 tc-play.h → tcplay.h
  10. +2 −2 tc-play-api.c → tcplay_api.c
  11. 0 tc-play-api.h → tcplay_api.h
View
8 Makefile
@@ -5,11 +5,11 @@ WARNFLAGS= -Wsystem-headers -Werror -Wall -W -Wno-unused-parameter \
-Winline -Wnested-externs -Wredundant-decls
all:
- gcc -O0 $(WARNFLAGS) -g tc-play.c crc32.c safe_mem.c io.c crypto.c hdr.c openssl/openssl/libcrypto.a -o tc-play -ldevmapper -lprop -lutil
+ gcc -O0 $(WARNFLAGS) -g tcplay.c crc32.c safe_mem.c io.c crypto.c hdr.c openssl/openssl/libcrypto.a -o tc-play -ldevmapper -lprop -lutil
experimental:
- gcc -O0 $(WARNFLAGS) -g main.c tc-play.c crc32.c safe_mem.c io.c crypto-dev.c hdr.c openssl/openssl/libcrypto.a -o tc-play -ldevmapper -lprop -lutil
+ gcc -O0 $(WARNFLAGS) -g main.c tcplay.c crc32.c safe_mem.c io.c crypto-dev.c hdr.c openssl/openssl/libcrypto.a -o tc-play -ldevmapper -lprop -lutil
lib:
- gcc $(WARNFLAGS) -c -fPIC -O0 -Wall -g tc-play-api.c tc-play.c crc32.c safe_mem.c io.c crypto-dev.c hdr.c
- gcc -shared -Wl -o libtcplay.so tc-play-api.o tc-play.o crc32.o safe_mem.o io.o crypto-dev.o hdr.o
+ gcc $(WARNFLAGS) -c -fPIC -O0 -Wall -g tcplay_api.c tc-play.c crc32.c safe_mem.c io.c crypto-dev.c hdr.c
+ gcc -shared -Wl -o libtcplay.so tcplay_api.o tc-play.o crc32.o safe_mem.o io.o crypto-dev.o hdr.o
clean:
rm -f tc-play tc-play.core *.o ktrace.out
View
2 crypto-dev.c
@@ -39,7 +39,7 @@
#include <openssl/evp.h>
#include "crc32.h"
-#include "tc-play.h"
+#include "tcplay.h"
static
int
View
2 crypto.c
@@ -31,7 +31,7 @@
#include <openssl/evp.h>
#include "crc32.h"
-#include "tc-play.h"
+#include "tcplay.h"
int
tc_crypto_init(void)
View
2 hdr.c
@@ -34,7 +34,7 @@
#include <string.h>
#include "crc32.h"
-#include "tc-play.h"
+#include "tcplay.h"
/* Endianess macros */
#define BE_TO_HOST(n, v) v = be ## n ## toh(v)
View
2 io.c
@@ -37,7 +37,7 @@
#include <termios.h>
#include <unistd.h>
-#include "tc-play.h"
+#include "tcplay.h"
void *
read_to_safe_mem(const char *file, off_t offset, size_t *sz)
View
6 main.c
@@ -38,7 +38,7 @@
#include <time.h>
#include <libutil.h>
-#include "tc-play.h"
+#include "tcplay.h"
static
void
@@ -53,7 +53,7 @@ void
usage(void)
{
fprintf(stderr,
- "Usage: tc-play <command> [options]\n"
+ "Usage: tcplay <command> [options]\n"
"Valid commands and its arguments are:\n"
" -c, --create\n"
"\t Creates a new TC volume on the device specified by -d or --device\n"
@@ -183,7 +183,7 @@ main(int argc, char *argv[])
sys_dev = optarg;
break;
case 'v':
- printf("tc-play v%d.%d\n", MAJ_VER, MIN_VER);
+ printf("tcplay v%d.%d\n", MAJ_VER, MIN_VER);
exit(0);
/* NOT REACHED */
case 'h':
View
2 safe_mem.c
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <string.h>
-#include "tc-play.h"
+#include "tcplay.h"
struct safe_mem_hdr {
struct safe_mem_hdr *prev;
View
2 tc-play.c → tcplay.c
@@ -38,7 +38,7 @@
#include <libutil.h>
#include "crc32.h"
-#include "tc-play.h"
+#include "tcplay.h"
/* XXX TODO:
View
2 tc-play.h → tcplay.h
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
-/* Version of tc-play */
+/* Version of tcplay */
#define MAJ_VER 0
#define MIN_VER 8
View
4 tc-play-api.c → tcplay_api.c
@@ -31,8 +31,8 @@
#include <unistd.h>
#include <errno.h>
-#include "tc-play.h"
-#include "tc-play-api.h"
+#include "tcplay.h"
+#include "tcplay_api.h"
int
tc_api_init(int verbose)
View
0 tc-play-api.h → tcplay_api.h
File renamed without changes.

0 comments on commit 1af29c1

Please sign in to comment.
Something went wrong with that request. Please try again.