Skip to content

Commit

Permalink
Added versioning 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianM27 committed Jul 2, 2024
1 parent 2714245 commit b167917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions memcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2904,6 +2904,8 @@ int main(int argc, char *argv[])
parasite_socket_dir = NULL;
parasite_socket_use_netns = 0;

fprintf(stdout, "[i] memcr version: %d.%d.%d\n", MEMCR_VERSION_MAJOR, MEMCR_VERSION_MINOR, MEMCR_VERSION_PATCH);

while ((opt = getopt_long(argc, argv, "hp:d:S:Nl:nmfzce::t:", long_options, &option_index)) != -1) {
switch (opt) {
case 'h':
Expand Down
4 changes: 4 additions & 0 deletions memcr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include <stdint.h>
#include <assert.h>

#define MEMCR_VERSION_MAJOR 1
#define MEMCR_VERSION_MINOR 0
#define MEMCR_VERSION_PATCH 1

#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif
Expand Down

0 comments on commit b167917

Please sign in to comment.