home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / relay / ihave.not.c < prev    next >
C/C++ Source or Header  |  1990-05-28  |  552b  |  40 lines

  1. /* :ts=4
  2.  * Reject the Usenet ihave/sendme control messages.
  3.  *
  4.  *    $Log$
  5.  */
  6.  
  7. #include <stdio.h>
  8. #ifdef unix
  9. # include <sys/types.h>
  10. #endif /* unix */
  11.  
  12. #include "news.h"
  13. #include "headers.h"
  14. #include "article.h"
  15.  
  16. static void
  17. ignore(cmd, args)
  18. char *cmd, *args;
  19. {
  20.     (void) fprintf(stderr, "%s: `%s %s' control ignored\n", progname, cmd, args);
  21. }
  22.  
  23. /* ARGSUSED art */
  24. void
  25. ihave(args, art)
  26. char *args;
  27. struct article *art;
  28. {
  29.     ignore("ihave", args);
  30. }
  31.  
  32. /* ARGSUSED art */
  33. void
  34. sendme(args, art)
  35. char *args;
  36. struct article *art;
  37. {
  38.     ignore("sendme", args);
  39. }
  40.