Changeset 4cb12f80


Ignore:
Timestamp:
Jun 3, 2013, 3:46:08 AM (11 years ago)
Author:
Alex Dehnert <adehnert@mit.edu>
Children:
2b4122c
Parents:
6383920
git-author:
Alex Dehnert <adehnert@mit.edu> (05/29/13 01:42:24)
git-committer:
Alex Dehnert <adehnert@mit.edu> (06/03/13 03:46:08)
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 r4cb12f80  
    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 r4cb12f80  
    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.