Skip to content

Commit

Permalink
fix binaryattach.c:7: error: conflicting types for ‘versionsort’ /usr…
Browse files Browse the repository at this point in the history
…/include/dirent.h:340: note: previous declaration of ‘versionsort’ was here
  • Loading branch information
lytsing committed Nov 19, 2014
1 parent 535ffd4 commit 2620ad1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libythtbbs/binaryattach.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
#include <netinet/in.h>
#include <stdio.h>
#include "ythtbbs.h"
int versionsort(const void *a, const void *b);

#ifndef HAVE_VERSIONSORT
extern int versionsort(const void *a, const void *b);
#endif

static int
appendonebinaryattach(char *filename, char *attachname, char *attachfname)
Expand Down
5 changes: 4 additions & 1 deletion nju09/bbsscanreg.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include <dirent.h>
int versionsort(const void *a, const void *b);
#include "bbslib.h"

#ifndef HAVE_VERSIONSORT
extern int versionsort(const void *a, const void *b);
#endif

const static char *field[] =
{ "usernum", "userid", "realname", "dept", "addr", "phone", "assoc",
"rereg",
Expand Down

0 comments on commit 2620ad1

Please sign in to comment.