home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff319.lzh / CNewsSrc / cnews.orig.lzh / relay / msgs.c < prev    next >
C/C++ Source or Header  |  1989-06-27  |  515b  |  28 lines

  1. /*
  2.  * print common messages
  3.  */
  4.  
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include "news.h"
  8. #include "headers.h"
  9. #include "article.h"
  10. #include "msgs.h"
  11.  
  12. void
  13. fulldisk(art, file)        /* complain once & set ST_DISKFULL */
  14. register struct article *art;
  15. char *file;
  16. {
  17.     if (!(art->a_status&ST_DISKFULL))
  18.         art->a_status |= prfulldisk(file);
  19. }
  20.  
  21. statust
  22. prfulldisk(file)        /* complain once & return bad status */
  23. char *file;
  24. {
  25.     warning("error writing `%s', probably the disk filled", file);
  26.     return ST_DISKFULL|ST_DROPPED;
  27. }
  28.