Skip to content

Commit

Permalink
cleanup: move a macro in a shared file
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
  • Loading branch information
Andreagit97 committed Nov 15, 2023
1 parent 3987790 commit a85b16e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions driver/capture_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ or GPL2.txt for full copies of the license.

/* Convert seconds to nanoseconds */
#define SECOND_TO_NS 1000000000ULL

#ifdef PAGE_SIZE
#define STR_STORAGE_SIZE PAGE_SIZE
#endif
2 changes: 0 additions & 2 deletions driver/ppm.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ struct ppm_ring_buffer_context {
char *str_storage; /* String storage. Size is one page. */
};

#define STR_STORAGE_SIZE PAGE_SIZE

/*
* Global functions
*
Expand Down

0 comments on commit a85b16e

Please sign in to comment.