You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

  1. diff --git a/tftp_def.c b/tftp_def.c
  2. index 96abdc5..16240f7 100644
  3. --- a/tftp_def.c
  4. +++ b/tftp_def.c
  5. @@ -141,7 +141,7 @@ int print_eng(double value, char *string, int size, char *format)
  6. /*
  7. * This is a strncpy function that take care of string NULL termination
  8. */
  9. -inline char *Strncpy(char *to, const char *from, size_t size)
  10. +char *Strncpy(char *to, const char *from, size_t size)
  11. {
  12. strncpy(to, from, size);
  13. if (size>0)
  14. diff --git a/tftp_def.h b/tftp_def.h
  15. index e4b338d..4418ee7 100644
  16. --- a/tftp_def.h
  17. +++ b/tftp_def.h
  18. @@ -50,7 +50,7 @@ extern char *tftp_errmsg[9];
  19. int timeval_diff(struct timeval *res, struct timeval *t1, struct timeval *t0);
  20. int print_eng(double value, char *string, int size, char *format);
  21. -inline char *Strncpy(char *to, const char *from, size_t size);
  22. +char *Strncpy(char *to, const char *from, size_t size);
  23. int Gethostbyname(char *addr, struct hostent *host);
  24. char *sockaddr_print_addr(const struct sockaddr_storage *, char *, size_t);
  25. diff --git a/tftpd.h b/tftpd.h
  26. index 945065e..4bd3f17 100644
  27. --- a/tftpd.h
  28. +++ b/tftpd.h
  29. @@ -93,7 +93,7 @@ int tftpd_list_find_multicast_server_and_add(struct thread_data **thread,
  30. /*
  31. * Defined in tftpd_list.c, operation on client structure list.
  32. */
  33. -inline void tftpd_clientlist_ready(struct thread_data *thread);
  34. +void tftpd_clientlist_ready(struct thread_data *thread);
  35. void tftpd_clientlist_remove(struct thread_data *thread,
  36. struct client_info *client);
  37. void tftpd_clientlist_free(struct thread_data *thread);
  38. diff --git a/tftpd_list.c b/tftpd_list.c
  39. index f376159..159ffca 100644
  40. --- a/tftpd_list.c
  41. +++ b/tftpd_list.c
  42. @@ -201,7 +201,7 @@ int tftpd_list_find_multicast_server_and_add(struct thread_data **thread,
  43. return 0;
  44. }
  45. -inline void tftpd_clientlist_ready(struct thread_data *thread)
  46. +void tftpd_clientlist_ready(struct thread_data *thread)
  47. {
  48. pthread_mutex_lock(&thread->client_mutex);
  49. thread->client_ready = 1;
  50. --
  51. 2.1.4