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 | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:cefcc87e08cbc946a73060f69a99c222648afd22b5797da840d1672303db2545
User & Date: andybradford 2018-01-15 17:35:51
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
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/util.c.

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