Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Untitled
Thursday, April 24th, 2008 at 7:44:18am UTC 

  1. Index: apps/tagcache.c
  2. ===================================================================
  3. --- apps/tagcache.c     (revision 17232)
  4. +++ apps/tagcache.c     (working copy)
  5. @@ -145,10 +145,10 @@
  6.  };
  7.  
  8.  struct tagcache_command_entry {
  9. -    long command;
  10. -    long idx_id;
  11. -    long tag;
  12. -    long data;
  13. +    int32_t command;
  14. +    int32_t idx_id;
  15. +    int32_t tag;
  16. +    int32_t data;
  17.  };
  18.  
  19.  static struct tagcache_command_entry command_queue[TAGCACHE_COMMAND_QUEUE_LENGTH];
  20. @@ -167,22 +167,22 @@
  21.  
  22.  /* Fixed-size tag entry in master db index. */
  23.  struct index_entry {
  24. -    long tag_seek[TAG_COUNT]; /* Location of tag data or numeric tag data */
  25. -    long flag;                /* Status flags */
  26. +    int32_t tag_seek[TAG_COUNT]; /* Location of tag data or numeric tag data */
  27. +    int32_t flag;                /* Status flags */
  28.  };
  29.  
  30.  /* Header is the same in every file. */
  31.  struct tagcache_header {
  32. -    long magic;       /* Header version number */
  33. -    long datasize;    /* Data size in bytes */
  34. -    long entry_count; /* Number of entries in this file */
  35. +    int32_t magic;       /* Header version number */
  36. +    int32_t datasize;    /* Data size in bytes */
  37. +    int32_t entry_count; /* Number of entries in this file */
  38.  };
  39.  
  40.  struct master_header {
  41.      struct tagcache_header tch;
  42. -    long serial; /* Increasing counting number */
  43. -    long commitid; /* Number of commits so far */
  44. -    long dirty;
  45. +    int32_t serial; /* Increasing counting number */
  46. +    int32_t commitid; /* Number of commits so far */
  47. +    int32_t dirty;
  48.  };
  49.  
  50.  /* For the endianess correction */

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right