Skip to content

Commit

Permalink
Minor compile fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 6, 2009
1 parent f040b90 commit e43f1c1
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions nph-offload.c
Expand Up @@ -470,6 +470,8 @@ static void make_date_header(char *buf, const size_t buflen)
tm->tm_year+1900, tm->tm_hour, tm->tm_min, tm->tm_sec);
} // make_date_header


#if GDEBUG
static void printf_date_header(FILE *out)
{
char buf[128];
Expand All @@ -478,6 +480,7 @@ static void printf_date_header(FILE *out)
make_date_header(buf, sizeof (buf));
fprintf(out, "%s", buf);
} // printf_date_header
#endif


static void terminate(void);
Expand Down Expand Up @@ -1030,6 +1033,14 @@ static void http_head(list **head)
close(fd);
} // http_head

static const char *makeNum(int64 num)
{
static char buf[64];
snprintf(buf, sizeof (buf), "%lld", (long long) num);
return buf;
} // makeNum



#if !GNOCACHE
static int http_get(list **head)
Expand All @@ -1046,14 +1057,6 @@ static int http_get(list **head)
} // http_get


static const char *makeNum(int64 num)
{
static char buf[64];
snprintf(buf, sizeof (buf), "%lld", (long long) num);
return buf;
} // makeNum


static list *loadMetadata(const char *fname)
{
list *retval = NULL;
Expand Down

0 comments on commit e43f1c1

Please sign in to comment.