Skip to content

Commit 689b686

Browse files
committed
Clean up some imports
1 parent 3a38a74 commit 689b686

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ doc/version.texi
55
doc/yafc.info
66
.deps
77
yafc
8-
yafcrc.h
8+
src/yafcrc.h
99
contrib/*.spec
1010
src/*.o
1111
src/ftp/*.o

Makefile.am

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,21 @@ DEFS = -DLOCALEDIR=\"${YAFC_LOCALEDIR}\" \
135135
-DSYSCONFDIR=\"@sysconfdir@\" \
136136
@DEFS@
137137

138-
BUILT_SOURCES = yafcrc.h
138+
BUILT_SOURCES = src/yafcrc.h
139139

140140
AM_CPPFLAGS = $(BSD_CFLAGS) \
141141
$(SSH_CFLAGS) \
142142
$(EDITLINE_CFLAGS) \
143143
-I$(top_srcdir)/src \
144-
-I$(top_srcdir)/lib \
145144
-I$(top_srcdir)/src/ftp \
146145
-I$(top_srcdir)/src/libmhe
147146

148-
yafcrc.h: $(top_srcdir)/samples/yafcrc
149-
echo "const char *default_yafcrc = \"\"" > yafcrc.h
147+
src/yafcrc.h: $(top_srcdir)/samples/yafcrc
148+
echo "const char *default_yafcrc = \"\"" > src/yafcrc.h
150149
sed \
151150
-e 's/\\/\\\\/g' \
152151
-e 's/"/\\\"/g' \
153152
-e 's/^\(.*\)$$/\"\1\\n\"/' \
154153
< $(top_srcdir)/samples/yafcrc \
155-
>> yafcrc.h
156-
echo ";" >> yafcrc.h
154+
>> src/yafcrc.h
155+
echo ";" >> src/yafcrc.h

src/bookmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "ftp.h"
1515
#include "input.h"
1616
#include "gvars.h"
17-
#include "base64.h"
17+
#include "../../lib/base64.h"
1818
#include "commands.h"
1919
#include "shortpath.h"
2020
#include "strq.h"

src/ftp/url.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
#include "syshdr.h"
1414

1515
#include "url.h"
16-
#include "xmalloc.h"
1716
#include "strq.h"
18-
#include "base64.h"
17+
#include "../../lib/base64.h"
1918

2019
void listify_string(const char *str, list *lp);
2120

src/gvars.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
*/
1212

1313
#include "syshdr.h"
14-
#include "ftp.h"
15-
#include "linklist.h"
14+
#include "ftp/ftp.h"
15+
#include "libmhe/linklist.h"
1616
#include "stats.h"
1717

1818
/* time (in seconds) before a cached directory times out, 0 == never */

src/syshdr.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#endif
3333

3434
#ifdef HAVE_CONFIG_H
35-
# include "config.h"
35+
# include "../config.h"
3636
#endif
3737

3838
#ifdef HAVE_SYS_TYPES_H
@@ -56,7 +56,7 @@
5656
#include <errno.h>
5757
#include <grp.h>
5858

59-
#include "xmalloc.h"
59+
#include "libmhe/xmalloc.h"
6060

6161
#include <sys/ioctl.h>
6262

@@ -169,20 +169,20 @@ typedef CPPFunction rl_completion_func_t;
169169
#ifdef HAVE_FNMATCH_GNU
170170
#include <fnmatch.h>
171171
#else
172-
#include "fnmatch.h" /* our own, in lib/ */
172+
#include "../lib/fnmatch.h" /* our own, in lib/ */
173173
#endif
174174

175175
#if defined(HAVE_GETOPT_LONG) && defined(HAVE_GETOPT_H)
176176
# include <getopt.h>
177177
#else
178-
# include "getopt.h" /* our own, in lib/ */
178+
# include "../lib/getopt.h" /* our own, in lib/ */
179179
#endif
180180

181181
#define min(a, b) ((a) < (b) ? (a) : (b))
182182

183183
#ifdef HAVE_KERBEROS
184184
# define SECFTP
185-
# include "security.h" /* our own, in lib/ */
185+
# include "../lib/security.h" /* our own, in lib/ */
186186
# ifndef HAVE_DECL_STRLCPY
187187
size_t strlcpy (char *dst, const char *src, size_t dst_sz);
188188
# endif

0 commit comments

Comments
 (0)