diff options
author | jbj <devnull@localhost> | 2000-05-12 23:10:43 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-05-12 23:10:43 +0000 |
commit | 9733e2e589c60f2f0112b00ac6575e97e9628671 (patch) | |
tree | f72323b4c04e85ed76ec5669e8f7ab43d449ffa3 /rpm.c | |
parent | 4a4704f98f9ebf216652caa01994895005bc1994 (diff) | |
download | librpm-tizen-9733e2e589c60f2f0112b00ac6575e97e9628671.tar.gz librpm-tizen-9733e2e589c60f2f0112b00ac6575e97e9628671.tar.bz2 librpm-tizen-9733e2e589c60f2f0112b00ac6575e97e9628671.zip |
fix: define/eval options assumed sizeof(int) == sizeof(void *).
CVS patchset: 3724
CVS date: 2000/05/12 23:10:43
Diffstat (limited to 'rpm.c')
-rwxr-xr-x | rpm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -117,10 +117,10 @@ static struct poptOption optionsTable[] = { { "build", 'b', POPT_ARG_STRING, 0, 'b', NULL, NULL}, { "checksig", 'K', 0, 0, 'K', NULL, NULL}, { "dbpath", '\0', POPT_ARG_STRING, 0, GETOPT_DBPATH, NULL, NULL}, - { "define", '\0', POPT_ARG_STRING, &noUsageMsg, GETOPT_DEFINEMACRO,NULL, NULL}, + { "define", '\0', POPT_ARG_STRING, 0, GETOPT_DEFINEMACRO,NULL, NULL}, { "dirtokens", '\0', POPT_ARG_VAL, &_noDirTokens, 0, NULL, NULL}, { "erase", 'e', 0, 0, 'e', NULL, NULL}, - { "eval", '\0', POPT_ARG_STRING, &noUsageMsg, GETOPT_EVALMACRO, NULL, NULL}, + { "eval", '\0', POPT_ARG_STRING, 0, GETOPT_EVALMACRO, NULL, NULL}, { "excludedocs", '\0', 0, &excldocs, 0, NULL, NULL}, { "excludepath", '\0', POPT_ARG_STRING, 0, GETOPT_EXCLUDEPATH, NULL, NULL}, { "force", '\0', 0, &force, 0, NULL, NULL}, @@ -851,12 +851,14 @@ int main(int argc, const char ** argv) case GETOPT_DEFINEMACRO: rpmDefineMacro(NULL, optArg, RMIL_CMDLINE); rpmDefineMacro(&rpmCLIMacroContext, optArg, RMIL_CMDLINE); + noUsageMsg = 1; break; case GETOPT_EVALMACRO: { const char *val = rpmExpand(optArg, NULL); fprintf(stdout, "%s\n", val); xfree(val); + noUsageMsg = 1; } break; case GETOPT_TIMECHECK: |