diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-01-24 10:30:58 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-02-15 12:04:14 +0100 |
| commit | 7562422ab9310b81142986f69964194f491948cc (patch) | |
| tree | c6db8953aba8939257b83b9fbc0b86ef9db0e632 /examples/network/fetch.c | |
| parent | c4271314e10b13acbe57c4a1dac0209d1c14a28a (diff) | |
| download | libgit2-7562422ab9310b81142986f69964194f491948cc.tar.gz | |
examples: merge common network code
Right now, we have two sets of "common" code, one containing
general common code and one containing network common code. As we
intend to get rid of the network subdirectory and instead merge
all examples into a single standalone executable, this
distinction doesn't make a lot of sense now. Furthermore, the
common network code is not that big.
Let's get rid of the common network code by merging it into the
general common code.
Diffstat (limited to 'examples/network/fetch.c')
| -rw-r--r-- | examples/network/fetch.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 76b301193..bb5f1b189 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -1,12 +1,4 @@ -#include "common.h" -#include <git2.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#ifndef _WIN32 -# include <pthread.h> -# include <unistd.h> -#endif +#include "../common.h" static int progress_cb(const char *str, int len, void *data) { |
