~ubuntu-branches/ubuntu/saucy/dahdi-tools/saucy

« back to all changes in this revision

Viewing changes to menuselect/menuselect_curses.c

  • Committer: Bazaar Package Importer
  • Author(s): Jean-Michel Dault, Tzafrir Cohen
  • Date: 2010-02-16 13:44:09 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100216134409-4y4k26mgzyra537o
Tags: 1:2.2.1-0ubuntu1
* Merge from Debian pkg-voip.
  * Changes from Debian:
  - debian/control: Change Maintainer
  - debian/control: Removed Uploaders field.
  - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
  - debian/control: Package dahdi Depends on  dahdi-dkms | dahdi-source

* From Debian pkg-voip:
[ Tzafrir Cohen ]
* New upstream release (Closes: #536257, #564381).
* Patch 'bashism' dropped: merged upstream. 
* Patch xpp_no_extra_at dropped: merged upstream. 
* Add an example genconf_parameters.
* Compat level 7.
* Bump standars version to 3.8.3.0 (no change needed)
* Udev rules are now in dahdi-linux.
* Patches perl_fix_noserial, perl_fix_transportdir: Fixes for some
  minor perl issues.
* Add the missing ${misc:Depends}, as per lintian. 
* Patch astribank_allow_ignoreend: an extra missing patch from upstream. 
* Patches init_unload_modules and init_unload_oslec: also unload OSLEC
  when unloading all modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
#define SCROLL_DOWN_INDICATOR "... More ..."
51
51
 
52
 
#define MIN(x,y) ((x)<(y)?(x):(y))
53
 
#define MAX(x,y) ((x)<(y)?(y):(x))
 
52
#define MIN(a, b) ({ typeof(a) __a = (a); typeof(b) __b = (b); ((__a > __b) ? __b : __a);})
 
53
#define MAX(a, b) ({ typeof(a) __a = (a); typeof(b) __b = (b); ((__a < __b) ? __b : __a);})
54
54
 
55
55
extern int changes_made;
56
56
 
107
107
        wclear(win);
108
108
        for (i = 0; i < (sizeof(help_info) / sizeof(help_info[0])); i++) {
109
109
                wmove(win, i, max_x / 2 - 15);
110
 
                waddstr(win, help_info[i]);
 
110
                waddstr(win, (char *) help_info[i]);
111
111
        }
112
112
        wrefresh(win);
113
113
        getch(); /* display the help until the user hits a key */
189
189
 
190
190
        if (mem->displayname) {
191
191
                wmove(menu, end - start + 2, max_x / 2 - 16);
192
 
                waddstr(menu, mem->displayname);
 
192
                waddstr(menu, (char *) mem->displayname);
193
193
        }
194
194
        if (!AST_LIST_EMPTY(&mem->deps)) {
195
195
                wmove(menu, end - start + 3, max_x / 2 - 16);
438
438
        wmove(title, 1, (max_x / 2) - (strlen(titlebar) / 2));
439
439
        waddstr(title, titlebar);
440
440
        wmove(title, 2, (max_x / 2) - (strlen(menu_name) / 2));
441
 
        waddstr(title, menu_name);
 
441
        waddstr(title, (char *) menu_name);
442
442
        wmove(title, 3, (max_x / 2) - (strlen(titlebar) / 2));
443
443
        waddstr(title, titlebar);
444
444
        wmove(title, 5, (max_x / 2) - (strlen(MENU_HELP) / 2));