Fossil

Check-in [cefcc87e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:End comment with matching #define for new fossil_pledge_impl() routine---no functional change.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cefcc87e08cbc946a73060f69a99c222648afd22b5797da840d1672303db2545
User & Date: andybradford 2018-01-15 17:35:51.840
Original Comment: End with matching #define for new fossil_pledge_impl() routine.
Context
2018-01-15
21:43
Only #define fossil_pledge in config.h if FOSSIL_HAVE_PLEDGE is not defined so that makeheaders can pick up the function prototype for checkin.h when FOSSIL_HAVE_PLEDGE is defined. ... (check-in: 1180676e user: andybradford tags: trunk)
17:35
End comment with matching #define for new fossil_pledge_impl() routine---no functional change. ... (check-in: cefcc87e user: andybradford tags: trunk)
16:18
Add the fossil_pledge() utility routine, that is a no-op unless compiled with FOSSIL_HAVE_PLEDGE. ... (check-in: 7b81a999 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/util.c.
496
497
498
499
500
501
502
503
*/
void fossil_pledge_impl(const char *promises, const char *execpromises){
  if( pledge(promises, execpromises) ){
    fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d",
       promises, execpromises, (int)errno);
  }
}
#endif /* defined(__OpenBSD__) */







|
496
497
498
499
500
501
502
503
*/
void fossil_pledge_impl(const char *promises, const char *execpromises){
  if( pledge(promises, execpromises) ){
    fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d",
       promises, execpromises, (int)errno);
  }
}
#endif /* defined(FOSSIL_HAVE_PLEDGE) */