Skip to content

Commit

Permalink
Rename, step 1: rename directories, but not build products.
Browse files Browse the repository at this point in the history
  • Loading branch information
dag-erling committed Sep 15, 2016
1 parent ea1ec10 commit 8c5c009
Show file tree
Hide file tree
Showing 47 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion bin/fly/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AM_CPPFLAGS = -I$(top_srcdir)/include
sbin_PROGRAMS = fly
fly_SOURCES = fly.c
fly_LDADD = $(top_builddir)/lib/libfc/libfc.a
fly_LDADD = $(top_builddir)/lib/libft/libfc.a
dist_man1_MANS = fly.1
6 changes: 3 additions & 3 deletions bin/fly/fly.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
#include <string.h>
#include <unistd.h>

#include <fc/ctype.h>
#include <fc/endian.h>
#include <fc/log.h>
#include <ft/ctype.h>
#include <ft/endian.h>
#include <ft/log.h>

#define FLY_DEFAULT_PORT 80
static const char data[] = "GET / HTTP/0.9\r\n\r\n";
Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AC_PREREQ([2.59])
AC_INIT([Flycatcher], [0.20160915], [d.e.smorgrav@usit.uio.no],
[flycatcher], [https://www.github.com/unioslo/flycatcher])
AC_CONFIG_SRCDIR([sbin/flycatcher/flycatcher.c])
AC_CONFIG_SRCDIR([sbin/flytrap/flycatcher.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
AM_CONFIG_HEADER(include/config.h)
Expand Down Expand Up @@ -93,11 +93,11 @@ AC_CONFIG_FILES([
Makefile
include/Makefile
lib/Makefile
lib/libfc/Makefile
lib/libft/Makefile
bin/Makefile
bin/fly/Makefile
sbin/Makefile
sbin/flycatcher/Makefile
sbin/flytrap/Makefile
rc/Makefile
rc/flycatcher.logrotate
rc/flycatcher.systemd
Expand Down
20 changes: 10 additions & 10 deletions include/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
noinst_HEADERS =
noinst_HEADERS += fc/assert.h
noinst_HEADERS += fc/ctype.h
noinst_HEADERS += fc/dict.h
noinst_HEADERS += fc/endian.h
noinst_HEADERS += fc/flopen.h
noinst_HEADERS += fc/hash.h
noinst_HEADERS += fc/log.h
noinst_HEADERS += fc/pidfile.h
noinst_HEADERS += fc/sbuf.h
noinst_HEADERS += fc/strutil.h
noinst_HEADERS += ft/assert.h
noinst_HEADERS += ft/ctype.h
noinst_HEADERS += ft/dict.h
noinst_HEADERS += ft/endian.h
noinst_HEADERS += ft/flopen.h
noinst_HEADERS += ft/hash.h
noinst_HEADERS += ft/log.h
noinst_HEADERS += ft/pidfile.h
noinst_HEADERS += ft/sbuf.h
noinst_HEADERS += ft/strutil.h
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBDIRS = libfc
SUBDIRS = libft
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/libfc/fc_assert.c → lib/libft/fc_assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#include <stdarg.h>
#include <stdlib.h>

#include <fc/assert.h>
#include <ft/assert.h>
#define FC_LOGV_REQUIRED
#include <fc/log.h>
#include <ft/log.h>

void
fc_abort(const char *fmt, ...)
Expand Down
4 changes: 2 additions & 2 deletions lib/libfc/fc_dict.c → lib/libft/fc_dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <fc/dict.h>
#include <fc/hash.h>
#include <ft/dict.h>
#include <ft/hash.h>

struct fc_dict_ent {
const char *key;
Expand Down
2 changes: 1 addition & 1 deletion lib/libfc/fc_flopen.c → lib/libft/fc_flopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <string.h>
#include <unistd.h>

#include "fc/flopen.h"
#include "ft/flopen.h"

int
fc_flopen(const char *path, int flags, ...)
Expand Down
2 changes: 1 addition & 1 deletion lib/libfc/fc_hash.c → lib/libft/fc_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <stdint.h>
#include <string.h>

#include <fc/hash.h>
#include <ft/hash.h>

/*
* Implementation of the hash function described in Pearson, Peter
Expand Down
4 changes: 2 additions & 2 deletions lib/libfc/fc_log.c → lib/libft/fc_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#include <syslog.h>

#define FC_LOGV_REQUIRED
#include <fc/log.h>
#include <fc/strutil.h>
#include <ft/log.h>
#include <ft/strutil.h>

static char fc_prog_name[16];
fc_log_level_t fc_log_level;
Expand Down
4 changes: 2 additions & 2 deletions lib/libfc/fc_pidfile.c → lib/libft/fc_pidfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include <string.h>
#include <unistd.h>

#include "fc/flopen.h"
#include "fc/pidfile.h"
#include "ft/flopen.h"
#include "ft/pidfile.h"

struct fc_pidfh {
int pf_fd;
Expand Down
2 changes: 1 addition & 1 deletion lib/libfc/fc_readlinev.c → lib/libft/fc_readlinev.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <stdio.h>
#include <stdlib.h>

#include <fc/strutil.h>
#include <ft/strutil.h>

#define MIN_WORDV_SIZE 32

Expand Down
4 changes: 2 additions & 2 deletions lib/libfc/fc_readword.c → lib/libft/fc_readword.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include <stdio.h>
#include <stdlib.h>

#include <fc/ctype.h>
#include "fc/strutil.h"
#include <ft/ctype.h>
#include "ft/strutil.h"

#define MIN_WORD_SIZE 32

Expand Down
2 changes: 1 addition & 1 deletion lib/libfc/fc_sbuf.c → lib/libft/fc_sbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <stdlib.h>
#include <string.h>

#include <fc/sbuf.h>
#include <ft/sbuf.h>

#define KASSERT(e, m) assert(e)
#define SBMALLOC(size) malloc(size)
Expand Down
2 changes: 1 addition & 1 deletion lib/libfc/fc_strlcat.c → lib/libft/fc_strlcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <stddef.h>

#include <fc/strutil.h>
#include <ft/strutil.h>

/*
* Like strcat(3), but always NUL-terminates; returns strlen(src)
Expand Down
2 changes: 1 addition & 1 deletion lib/libfc/fc_strlcpy.c → lib/libft/fc_strlcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <stddef.h>

#include <fc/strutil.h>
#include <ft/strutil.h>

/*
* Like strcpy(3), but always NUL-terminates; returns strlen(src)
Expand Down
2 changes: 1 addition & 1 deletion sbin/Makefile.am
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBDIRS = flycatcher
SUBDIRS = flytrap
File renamed without changes.
2 changes: 1 addition & 1 deletion sbin/flycatcher/Makefile.am → sbin/flytrap/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ flycatcher_SOURCES += ip4.c
flycatcher_SOURCES += tcp4.c
flycatcher_SOURCES += udp4.c

flycatcher_LDADD = $(LIBPCAP) $(top_builddir)/lib/libfc/libfc.a
flycatcher_LDADD = $(LIBPCAP) $(top_builddir)/lib/libft/libfc.a

noinst_HEADERS =
noinst_HEADERS += ethernet.h
Expand Down
6 changes: 3 additions & 3 deletions sbin/flycatcher/arp.c → sbin/flytrap/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
#include <stdlib.h>
#include <string.h>

#include <fc/assert.h>
#include <fc/endian.h>
#include <fc/log.h>
#include <ft/assert.h>
#include <ft/endian.h>
#include <ft/log.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions sbin/flycatcher/ether.c → sbin/flytrap/ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <fc/endian.h>
#include <fc/log.h>
#include <ft/endian.h>
#include <ft/log.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sbin/flycatcher/flycatcher.c → sbin/flytrap/flycatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <stdlib.h>
#include <string.h>

#include <fc/log.h>
#include <ft/log.h>

#include "flycatcher.h"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions sbin/flycatcher/icmp4.c → sbin/flytrap/icmp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@

#include <arpa/inet.h>

#include <fc/assert.h>
#include <fc/endian.h>
#include <fc/log.h>
#include <ft/assert.h>
#include <ft/endian.h>
#include <ft/log.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
6 changes: 3 additions & 3 deletions sbin/flycatcher/iface.c → sbin/flytrap/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
#error pcap library required
#endif

#include <fc/log.h>
#include <fc/sbuf.h>
#include <fc/strutil.h>
#include <ft/log.h>
#include <ft/sbuf.h>
#include <ft/strutil.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions sbin/flycatcher/ip4.c → sbin/flytrap/ip4.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@

#include <arpa/inet.h>

#include <fc/assert.h>
#include <fc/ctype.h>
#include <fc/endian.h>
#include <fc/log.h>
#include <ft/assert.h>
#include <ft/ctype.h>
#include <ft/endian.h>
#include <ft/log.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions sbin/flycatcher/main.c → sbin/flytrap/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <string.h>
#include <unistd.h>

#include <fc/log.h>
#include <fc/pidfile.h>
#include <ft/log.h>
#include <ft/pidfile.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions sbin/flycatcher/tcp4.c → sbin/flytrap/tcp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <fc/endian.h>
#include <fc/log.h>
#include <ft/endian.h>
#include <ft/log.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down
4 changes: 2 additions & 2 deletions sbin/flycatcher/udp4.c → sbin/flytrap/udp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include <stddef.h>
#include <stdint.h>

#include <fc/endian.h>
#include <fc/log.h>
#include <ft/endian.h>
#include <ft/log.h>

#include "flycatcher.h"
#include "ethernet.h"
Expand Down

0 comments on commit 8c5c009

Please sign in to comment.