Repositories (1)

coldsync
3 snippets stored for this repo
# XXX - Might be a good idea to make sure that $Pappinfo_raw is at least
# long enough for a standard set of categories, in case some dumbass runs
# this on a non-StdAppInfo database.
# XXX - Might be a good idea to make sure that category 0 has ID 0, in case
# some dumbass runs this on a non-StdAppInfo database.
/* palm_userid
 * Returns the user ID from the Palm.
 * Arguably, the fact that this returns 0 upon error is a Bad Thing, but 0
 * means "this is a fresh Palm", so I have no sympathy for any dumbass who
 * sets it to 0 (e.g., by running ColdSync as root, or something).
 */
const udword palm_userid(struct Palm *palm)