Changeset 80d7b44


Ignore:
Timestamp:
Jun 20, 2013, 6:22:52 AM (11 years ago)
Author:
Alex Dehnert <adehnert@mit.edu>
Branches:
master, release-1.10
Children:
10c32c9, 36c89aa, 553fd38, 2b4122c, 6f3d6b4
Parents:
41779bf
git-author:
Alex Dehnert <adehnert@mit.edu> (05/29/13 01:42:24)
git-committer:
Alex Dehnert <adehnert@mit.edu> (06/20/13 06:22:52)
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
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

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

    r60ae736 r80d7b44  
    731731  if (!owl_zwrite_recip_is_personal(recipient) && *owl_global_get_zsender(&g))
    732732    notice.z_sender = zsender = long_zuser(owl_global_get_zsender(&g));
    733   notice.z_default_format=zstr("http://zephyr.1ts.org/wiki/df");
     733  notice.z_default_format=zstr(ZEPHYR_DEFAULT_FORMAT);
    734734  if (opcode) notice.z_opcode=zstr(opcode);
    735735
Note: See TracChangeset for help on using the changeset viewer.