patch-rpc_bootparamd_main_c 623 B

123456789101112131415161718192021222324
  1. --- netkit-bootparamd-0.17.orig/rpc.bootparamd/main.c 2000-07-22 11:23:56.000000000 -0500
  2. +++ netkit-bootparamd-0.17/rpc.bootparamd/main.c 2015-03-07 15:09:26.074419604 -0600
  3. @@ -15,12 +15,6 @@
  4. #include <unistd.h>
  5. #include "bootparam_prot.h"
  6. -
  7. -#ifdef __GLIBC__
  8. - /* quick fix */
  9. - void get_myaddress(struct sockaddr_in *);
  10. -#endif
  11. -
  12. int debug = 0;
  13. int dolog = 0;
  14. struct in_addr route_addr;
  15. @@ -39,7 +33,7 @@ main(int argc, char **argv)
  16. struct stat buf;
  17. char c;
  18. - progname = rindex(argv[0],'/');
  19. + progname = strrchr(argv[0],'/');
  20. if (progname) progname++;
  21. else progname = argv[0];