[BACK]Return to logger.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / logger

Diff for /src/usr.bin/logger/logger.c between version 1.17 and 1.18

version 1.17, 2016/03/28 18:18:52 version 1.18, 2019/06/17 00:23:03
Line 61 
Line 61 
         tag = NULL;          tag = NULL;
         pri = LOG_NOTICE;          pri = LOG_NOTICE;
         logflags = 0;          logflags = 0;
         while ((ch = getopt(argc, argv, "f:ip:st:")) != -1)          while ((ch = getopt(argc, argv, "cf:ip:st:")) != -1)
                 switch(ch) {                  switch(ch) {
                   case 'c':               /* log to console */
                           logflags |= LOG_CONS;
                           break;
                 case 'f':               /* file to log */                  case 'f':               /* file to log */
                         if (freopen(optarg, "r", stdin) == NULL) {                          if (freopen(optarg, "r", stdin) == NULL) {
                                 (void)fprintf(stderr, "logger: %s: %s.\n",                                  (void)fprintf(stderr, "logger: %s: %s.\n",
Line 180 
Line 183 
 usage(void)  usage(void)
 {  {
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: logger [-is] [-f file] [-p pri] [-t tag] [message ...]\n");              "usage: logger [-cis] [-f file] [-p pri] [-t tag] [message ...]\n");
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18