Changeset ff25de6


Ignore:
Timestamp:
Nov 17, 2013, 3:44:14 AM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
release-1.9
Children:
e2e4072
Parents:
a634103
git-author:
Alex Dehnert <adehnert@mit.edu> (05/29/13 01:42:24)
git-committer:
Anders Kaseorg <andersk@mit.edu> (11/17/13 03:44:14)
Message:
Update and make configurable the default format

- Rather than http://zephyr.1ts.org/wiki/df, use http://mit.edu/df, which is
  shorter
- Rather than a bare URL, prefix "Config error: see " to make it clearer what
  is going on
- Make the default format configurable using ./configure, to aid users with
  particularly severe length constraints

(cherry picked from commit 80d7b445c48a5c63361e0ae972d0b0264d54ed65)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r577f8ab rff25de6  
    99AC_PROG_CC
    1010AC_PROG_CC_C99
     11
     12AC_ARG_WITH([zephyr-default-format],
     13    [AS_HELP_STRING([--with-zephyr-default-format],
     14                    [value for the default format zephyrgram field])],
     15    [
     16        case $withval in
     17            yes) withval='Config error: see http://mit.edu/df';;
     18            no) withval='';;
     19        esac
     20        zephyr_default_format=$withval
     21    ],
     22    [zephyr_default_format='Config error: see http://mit.edu/df'])
     23AC_DEFINE_UNQUOTED(
     24    [ZEPHYR_DEFAULT_FORMAT], ["$zephyr_default_format"],
     25    [Value for the default format zephyrgram field]
     26)
    1127
    1228AC_ARG_WITH([stack-protector],
  • zephyr.c

    r245d586 rff25de6  
    729729  if (!owl_zwrite_recip_is_personal(recipient) && *owl_global_get_zsender(&g))
    730730    notice.z_sender = zsender = long_zuser(owl_global_get_zsender(&g));
    731   notice.z_default_format=zstr("http://zephyr.1ts.org/wiki/df");
     731  notice.z_default_format=zstr(ZEPHYR_DEFAULT_FORMAT);
    732732  if (opcode) notice.z_opcode=zstr(opcode);
    733733
Note: See TracChangeset for help on using the changeset viewer.