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.

44 lines
1.6 KiB

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