X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=c56fd993ad14d355be2163aa28c1c0c90d847013;hp=d2cf207c5bf10658dbb9633cc0f2d6409443923f;hb=2a250f30ac496bb8a383036dcbd4ec0218c98ac5;hpb=11ca5f62994c7a14c4e500510bd242e1e721f8be diff --git a/progs/tic.c b/progs/tic.c index d2cf207c..c56fd993 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -44,7 +44,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.136 2008/08/16 21:52:36 tom Exp $") +MODULE_ID("$Id: tic.c,v 1.138 2009/03/14 18:45:55 tom Exp $") const char *_nc_progname = "tic"; @@ -99,7 +99,7 @@ free_namelist(char **src) #endif static void -cleanup(char **namelst) +cleanup(char **namelst GCC_UNUSED) { #if NO_LEAKS free_namelist(namelst); @@ -495,11 +495,11 @@ main(int argc, char *argv[]) _nc_progname = _nc_rootname(argv[0]); - if ((infodump = (strcmp(_nc_progname, PROG_CAPTOINFO) == 0)) != FALSE) { + if ((infodump = same_program(_nc_progname, PROG_CAPTOINFO)) != FALSE) { outform = F_TERMINFO; sortmode = S_TERMINFO; } - if ((capdump = (strcmp(_nc_progname, PROG_INFOTOCAP) == 0)) != FALSE) { + if ((capdump = same_program(_nc_progname, PROG_INFOTOCAP)) != FALSE) { outform = F_TERMCAP; sortmode = S_TERMCAP; }