Changeset 3192 for trunk/src/kmk/dir-nt-bird.c
- Timestamp:
- Mar 26, 2018, 10:25:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/dir-nt-bird.c
r3184 r3192 40 40 #endif 41 41 #include <assert.h> 42 #include "kmkbuiltin.h" 43 #include "kmkbuiltin/err.h" 42 44 43 45 #include "nt_fullpath.h" /* for the time being - will be implemented here later on. */ … … 730 732 731 733 732 int kmk_builtin_dircache(int argc, char **argv, char **envp )734 int kmk_builtin_dircache(int argc, char **argv, char **envp, PKMKBUILTINCTX pCtx) 733 735 { 734 736 assert(GetCurrentThreadId() == g_idMainThread); … … 743 745 return 0; 744 746 } 745 fprintf(stderr, "kmk_builtin_dircache:the 'invalidate' command takes no arguments!\n");747 errx(pCtx, 2, "the 'invalidate' command takes no arguments!\n"); 746 748 } 747 749 else if (strcmp(pszCmd, "invalidate-missing") == 0) … … 752 754 return 0; 753 755 } 754 fprintf(stderr, "kmk_builtin_dircache:the 'invalidate-missing' command takes no arguments!\n");756 errx(pCtx, 2, "the 'invalidate-missing' command takes no arguments!\n"); 755 757 } 756 758 else if (strcmp(pszCmd, "volatile") == 0) … … 769 771 } 770 772 else 771 fprintf(stderr, "kmk_builtin_dircache:Invalid command '%s'!\n", pszCmd);772 } 773 else 774 fprintf(stderr, "kmk_builtin_dircache:No command given!\n");773 errx(pCtx, 2, "Invalid command '%s'!\n", pszCmd); 774 } 775 else 776 errx(pCtx, 2, "No command given!\n"); 775 777 776 778 K_NOREF(envp);
Note:
See TracChangeset
for help on using the changeset viewer.